Mercurial > hg > forks > UniversalIndentGUI
diff src/SettingsPaths.cpp @ 716:b9123ff53106
Run cppcheck over the code and removed some possible problems.
git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@987 59b1889a-e5ac-428c-b0c7-476e01d41282
author | thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282> |
---|---|
date | Fri, 21 Aug 2009 09:38:00 +0000 |
parents | 3363b7bb0d41 |
children | aae5a8d04f70 |
line wrap: on
line diff
--- a/src/SettingsPaths.cpp Mon Jul 27 15:35:09 2009 +0000 +++ b/src/SettingsPaths.cpp Fri Aug 21 09:38:00 2009 +0000 @@ -143,7 +143,7 @@ // into this normally temporary but linked file. char *pathTemplate = new char[tempPath.length()+8]; QByteArray pathTemplateQBA = QString(tempPath + "-XXXXXX").toAscii(); - delete pathTemplate; + delete [] pathTemplate; pathTemplate = pathTemplateQBA.data(); pathTemplate = mkdtemp( pathTemplate ); tempPath = pathTemplate;