Commit 22e44853 authored by Dimitri van Heesch's avatar Dimitri van Heesch

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

parent 8f3e7fc8
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment