diff options
Diffstat (limited to '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); |