From 0873c7b6842dc04ac496b89c47c9c60b37dbaac1 Mon Sep 17 00:00:00 2001 From: Callum Anderson Date: Thu, 6 Mar 2014 14:43:06 +1100 Subject: [PATCH] Hook manual memory management --- stdx/d/parser.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stdx/d/parser.d b/stdx/d/parser.d index 0e384fc..508b8e1 100644 --- a/stdx/d/parser.d +++ b/stdx/d/parser.d @@ -4144,8 +4144,10 @@ q{(int a, ...) expect(tok!"("); expect(tok!"this"); expect(tok!")"); + MemberFunctionAttribute[] memberFunctionAttributes; while (currentIsMemberFunctionAttribute()) - node.memberFunctionAttributes ~= parseMemberFunctionAttribute(); + memberFunctionAttributes ~= parseMemberFunctionAttribute(); + node.memberFunctionAttributes = ownArray(memberFunctionAttributes); if (currentIs(tok!";")) advance(); else