diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-08-30 19:12:20 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-08-30 19:12:20 (GMT) |
commit | 22e44853813066e45b483b1b6633199b3d2bf509 (patch) | |
tree | d4d49fea821f4ed17e3119e2190100f6449c8dc6 | |
parent | 8f3e7fc892f07f32a2c6e0110dab58942f6c20a7 (diff) | |
download | Doxygen-22e44853813066e45b483b1b6633199b3d2bf509.zip Doxygen-22e44853813066e45b483b1b6633199b3d2bf509.tar.gz Doxygen-22e44853813066e45b483b1b6633199b3d2bf509.tar.bz2 |
Bug 735441 - [PATCH] Fix a resource leak in src/vhdldocgen.cpp
-rw-r--r-- | src/vhdldocgen.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vhdldocgen.cpp b/src/vhdldocgen.cpp index 0617ea6..d575398 100644 --- a/src/vhdldocgen.cpp +++ b/src/vhdldocgen.cpp @@ -479,7 +479,11 @@ static QList<MemberDef>* getPorts(ClassDef *cd) QList<MemberDef> *portList=new QList<MemberDef>; MemberList *ml=cd->getMemberList(MemberListType_variableMembers); - if (ml==0) return NULL; + if (ml==0) + { + delete portList; + return 0; + } MemberListIterator fmni(*ml); |