summaryrefslogtreecommitdiffstats
path: root/src/dotgroupcollaboration.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-12-08 12:10:17 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-12-08 12:10:17 (GMT)
commit7d4f5205482b0f0212707d573c8c668a0125cc9f (patch)
tree83fa73cff0fbcd62182aff0cce8de83064954f45 /src/dotgroupcollaboration.cpp
parent6d4835dbe01a27923db8a1e4559b61da5065cb7a (diff)
parent6382986b77d302be187d95aaa850eff132ec1d7d (diff)
downloadDoxygen-7d4f5205482b0f0212707d573c8c668a0125cc9f.zip
Doxygen-7d4f5205482b0f0212707d573c8c668a0125cc9f.tar.gz
Doxygen-7d4f5205482b0f0212707d573c8c668a0125cc9f.tar.bz2
Merge branch 'memory_leakage_fix' of https://github.com/virusxp/doxygen into virusxp-memory_leakage_fix
Diffstat (limited to 'src/dotgroupcollaboration.cpp')
-rw-r--r--src/dotgroupcollaboration.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dotgroupcollaboration.cpp b/src/dotgroupcollaboration.cpp
index f9a11e7..0a56460 100644
--- a/src/dotgroupcollaboration.cpp
+++ b/src/dotgroupcollaboration.cpp
@@ -42,6 +42,16 @@ DotGroupCollaboration::DotGroupCollaboration(const GroupDef* gd)
DotGroupCollaboration::~DotGroupCollaboration()
{
+ // delete all created Nodes saved in m_usedNodes:QDict
+ if(m_usedNodes != NULL)
+ {
+ QDictIterator<DotNode> it(*m_usedNodes);
+ for(;it.current(); ++it)
+ {
+ delete it.current();
+ }
+ }
+
delete m_usedNodes;
}