diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-08-31 14:52:19 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-08-31 14:52:19 (GMT) |
commit | 41887832b90698df95e8d222cdc0a541ae2f2284 (patch) | |
tree | 9ac6b9d9f07d8c5821fdd1b7d689db594a09414e /src/pre.l | |
parent | b59edd279f887e55b162ae1b1c7bce4b2ca29dab (diff) | |
download | Doxygen-41887832b90698df95e8d222cdc0a541ae2f2284.zip Doxygen-41887832b90698df95e8d222cdc0a541ae2f2284.tar.gz Doxygen-41887832b90698df95e8d222cdc0a541ae2f2284.tar.bz2 |
Fixed a number of issues (resource leaks, uninitialized members, etc) found by coverity
Diffstat (limited to 'src/pre.l')
-rw-r--r-- | src/pre.l | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -207,6 +207,7 @@ class DefineManager if (dpf==0) { dpf = new DefinesPerFile; + m_fileMap.insert(fileName,dpf); } dpf->addDefine(def); } @@ -223,6 +224,7 @@ class DefineManager if (dpf==0) { dpf = new DefinesPerFile; + m_fileMap.insert(fromFileName,dpf); } dpf->addInclude(toFileName); } @@ -2283,6 +2285,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'")) } <DefName>{ID}/("\\\n")*"(" { // define with argument //printf("Define() `%s'\n",yytext); + delete g_argDict; g_argDict = new QDict<int>(31); g_argDict->setAutoDelete(TRUE); g_defArgs = 0; |