]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filename.cpp
fixed a big memory leak in DoDrawBitmap() (coverity checker CID 57)
[wxWidgets.git] / src / common / filename.cpp
index 2e4c842d66633c653e639fd79a525e4f6f23fbe3..959224c908482fe8f464e90118022929e8fd7f52 100644 (file)
@@ -621,7 +621,8 @@ wxFileName::CreateTempFileName(const wxString& prefix, wxFile *fileTemp)
     if (dir.empty())
     {
         // FIXME. Create \temp dir?
-        dir = wxT("\\");
+        if (DirExists(wxT("\\temp")))
+            dir = wxT("\\temp");
     }
     path = dir + wxT("\\") + name;
     int i = 1;