summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/Parser.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2009-10-26 10:19:44 +0100
committerErik Verbruggen <erik.verbruggen@nokia.com>2009-10-26 10:50:11 +0100
commitf4047ac8bf3d9d6f8fab4110412532e724fe9422 (patch)
tree1c5f1606bb0348b96f6cff103944527898070096 /src/shared/cplusplus/Parser.cpp
parent3e953b03238ffa15de3c04dec22cb64e1253145b (diff)
downloadqt-creator-f4047ac8bf3d9d6f8fab4110412532e724fe9422.tar.gz
Fixed use of uninitialized/unallocated object.
Diffstat (limited to 'src/shared/cplusplus/Parser.cpp')
-rw-r--r--src/shared/cplusplus/Parser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Parser.cpp b/src/shared/cplusplus/Parser.cpp
index 4fffd4818d..835b2c11c8 100644
--- a/src/shared/cplusplus/Parser.cpp
+++ b/src/shared/cplusplus/Parser.cpp
@@ -4595,6 +4595,7 @@ bool Parser::parseObjCMethodDefinitionList(DeclarationListAST *&node)
last->next = new (_pool) ObjCSynthesizedPropertyListAST;
last = last->next;
+ last->synthesized_property = new (_pool) ObjCSynthesizedPropertyAST;
match(T_IDENTIFIER, &(last->synthesized_property->property_identifier));
if (LA() == T_EQUAL) {