summaryrefslogtreecommitdiffstats
path: root/src/classdef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-11-14 12:50:56 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-11-14 12:50:56 (GMT)
commit85ddfc814f33943199928447b4627d05b0920b99 (patch)
tree2887ce1367bdad15cde3b7355d134321fcf34762 /src/classdef.cpp
parent0918a19225daedfbd5e23388124a5de3860d5420 (diff)
downloadDoxygen-85ddfc814f33943199928447b4627d05b0920b99.zip
Doxygen-85ddfc814f33943199928447b4627d05b0920b99.tar.gz
Doxygen-85ddfc814f33943199928447b4627d05b0920b99.tar.bz2
Fixed a couple of small memory leaks
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r--src/classdef.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp
index fa555ac..88f9a70 100644
--- a/src/classdef.cpp
+++ b/src/classdef.cpp
@@ -2603,7 +2603,7 @@ void ClassDef::setTypeConstraints(ArgumentList *al)
void ClassDef::setTemplateArguments(ArgumentList *al)
{
if (al==0) return;
- if (!m_impl->tempArgs) delete m_impl->tempArgs; // delete old list if needed
+ if (m_impl->tempArgs) delete m_impl->tempArgs; // delete old list if needed
//printf("setting template args '%s' for '%s'\n",tempArgListToString(al,getLanguage()).data(),name().data());
m_impl->tempArgs=new ArgumentList;
ArgumentListIterator ali(*al);