Skip to content

Commit

Permalink
Fixed to small memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Sep 28, 2014
1 parent 4df5291 commit b55a5c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/config.h
Expand Up @@ -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();
}
Expand Down
4 changes: 4 additions & 0 deletions src/parserintf.h
Expand Up @@ -147,6 +147,10 @@ class ParserManager
*/
ParserManager()
: m_defaultParser(0) { m_parsers.setAutoDelete(TRUE); }
~ParserManager()
{
delete m_defaultParser;
}

void registerDefaultParser(ParserInterface *parser)
{
Expand Down
2 changes: 1 addition & 1 deletion src/plantuml.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit b55a5c9

Please sign in to comment.