diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2018-12-25 14:59:28 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2018-12-25 14:59:28 (GMT) |
commit | 0591146bb406c8601c452f7a8a9e6e24823ce8d9 (patch) | |
tree | 259b511dfbb63d98b43a323e982e0a3f40e401fe | |
parent | 48e838a1d15c5feb2247f9c93bebc971b871800c (diff) | |
download | Doxygen-0591146bb406c8601c452f7a8a9e6e24823ce8d9.zip Doxygen-0591146bb406c8601c452f7a8a9e6e24823ce8d9.tar.gz Doxygen-0591146bb406c8601c452f7a8a9e6e24823ce8d9.tar.bz2 |
Fixed two small memory leaks
-rw-r--r-- | src/definition.cpp | 1 | ||||
-rw-r--r-- | src/example.h | 2 |
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 |