Permalink
Browse files

Bug 735441 - [PATCH] Fix a resource leak in src/vhdldocgen.cpp

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Aug 30, 2014
1 parent 8f3e7fc commit 22e44853813066e45b483b1b6633199b3d2bf509
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/vhdldocgen.cpp
View
@@ -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);

0 comments on commit 22e4485

Please sign in to comment.