summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-09-28 19:27:35 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-09-28 19:27:35 (GMT)
commitb55a5c91d49359f9bbf7c78d9f284be2092bcfaa (patch)
tree1140dfaa95794f4d4b7d57f7031d55d123ad452c /src
parent4df52916170bb81179697d0fa78c7d81fd95415f (diff)
downloadDoxygen-b55a5c91d49359f9bbf7c78d9f284be2092bcfaa.zip
Doxygen-b55a5c91d49359f9bbf7c78d9f284be2092bcfaa.tar.gz
Doxygen-b55a5c91d49359f9bbf7c78d9f284be2092bcfaa.tar.bz2
Fixed to small memory leaks
Diffstat (limited to 'src')
-rw-r--r--src/config.h1
-rw-r--r--src/parserintf.h4
-rw-r--r--src/plantuml.cpp2
3 files changed, 6 insertions, 1 deletions
diff --git a/src/config.h b/src/config.h
index 505e4d1..981f6fe 100644
--- a/src/config.h
+++ b/src/config.h
@@ -533,6 +533,7 @@ class Config
m_dict = new QDict<ConfigOption>(257);
m_options->setAutoDelete(TRUE);
m_obsolete->setAutoDelete(TRUE);
+ m_disabled->setAutoDelete(TRUE);
m_initialized = FALSE;
create();
}
diff --git a/src/parserintf.h b/src/parserintf.h
index 019b4a9..989fdcf 100644
--- a/src/parserintf.h
+++ b/src/parserintf.h
@@ -147,6 +147,10 @@ class ParserManager
*/
ParserManager()
: m_defaultParser(0) { m_parsers.setAutoDelete(TRUE); }
+ ~ParserManager()
+ {
+ delete m_defaultParser;
+ }
void registerDefaultParser(ParserInterface *parser)
{
diff --git a/src/plantuml.cpp b/src/plantuml.cpp
index 5e5bd98..87e70e1 100644
--- a/src/plantuml.cpp
+++ b/src/plantuml.cpp
@@ -116,7 +116,7 @@ void generatePlantUMLOutput(const char *baseName,const char *outDir,PlantUMLOutp
QCString epstopdfArgs(maxCmdLine);
epstopdfArgs.sprintf("\"%s.eps\" --outfile=\"%s.pdf\"",baseName,baseName);
portable_sysTimerStart();
- if (exitCode=portable_system("epstopdf",epstopdfArgs)!=0)
+ if ((exitCode=portable_system("epstopdf",epstopdfArgs))!=0)
{
err("Problems running epstopdf. Check your TeX installation! Exit code: %d\n",exitCode);
}