Permalink
Browse files

Fixed to small memory leaks

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Sep 28, 2014
1 parent 4df5291 commit b55a5c91d49359f9bbf7c78d9f284be2092bcfaa
Showing with 6 additions and 1 deletion.
  1. +1 −0 src/config.h
  2. +4 −0 src/parserintf.h
  3. +1 −1 src/plantuml.cpp
View
@@ -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();
}
View
@@ -147,6 +147,10 @@ class ParserManager
*/
ParserManager()
: m_defaultParser(0) { m_parsers.setAutoDelete(TRUE); }
~ParserManager()
{
delete m_defaultParser;
}
void registerDefaultParser(ParserInterface *parser)
{
View
@@ -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);
}

0 comments on commit b55a5c9

Please sign in to comment.