Permalink
Browse files

Fixed potential crash while generating dot graphs

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Jan 9, 2015
1 parent cd8a78e commit 50f82c94b9bf1ff982f9ddd8b9a88fb91d9e0bec
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/dot.cpp
View
@@ -810,7 +810,11 @@ void DotRunner::addPostProcessing(const char *cmd,const char *args)
bool DotRunner::run()
{
int exitCode=0;
QCString dotExe = Config_getString("DOT_PATH")+"dot";
// we need to use data here to make a copy of the string, as Config_getString can be called by
// multiple threads simulaneously and the reference counting is not thread safe.
QCString dotExe = Config_getString("DOT_PATH").data();
dotExe+="dot";
bool multiTargets = Config_getBool("DOT_MULTI_TARGETS");
QCString dotArgs;
QListIterator<QCString> li(m_jobs);

0 comments on commit 50f82c9

Please sign in to comment.