summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-12-25 14:59:28 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2018-12-25 14:59:28 (GMT)
commit0591146bb406c8601c452f7a8a9e6e24823ce8d9 (patch)
tree259b511dfbb63d98b43a323e982e0a3f40e401fe /src
parent48e838a1d15c5feb2247f9c93bebc971b871800c (diff)
downloadDoxygen-0591146bb406c8601c452f7a8a9e6e24823ce8d9.zip
Doxygen-0591146bb406c8601c452f7a8a9e6e24823ce8d9.tar.gz
Doxygen-0591146bb406c8601c452f7a8a9e6e24823ce8d9.tar.bz2
Fixed two small memory leaks
Diffstat (limited to 'src')
-rw-r--r--src/definition.cpp1
-rw-r--r--src/example.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/definition.cpp b/src/definition.cpp
index 0a1c7c7..fbf5be8 100644
--- a/src/definition.cpp
+++ b/src/definition.cpp
@@ -271,6 +271,7 @@ void Definition::removeFromMap(Definition *d)
if (dl->isEmpty())
{
Doxygen::symbolMap->take(symbolName);
+ delete dl;
}
}
else // symbolName unique
diff --git a/src/example.h b/src/example.h
index cf30827..321982b 100644
--- a/src/example.h
+++ b/src/example.h
@@ -36,7 +36,7 @@ struct Example
class ExampleSDict : public SDict<Example>
{
public:
- ExampleSDict(int size=17) : SDict<Example>(size) {}
+ ExampleSDict(int size=17) : SDict<Example>(size) { setAutoDelete(TRUE); }
~ExampleSDict() {}
private:
int compareValues(const Example *item1,const Example *item2) const