From 522d32e508c54eec783123a583dbd9833d27810d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 19 Oct 2006 12:12:40 +0000 Subject: [PATCH] fixed the problem in 2 last commits git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/filefn.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index dd790a8431..5c8e11038e 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -1295,9 +1295,7 @@ wxChar *wxGetTempFileName(const wxString& prefix, wxChar *buf) bool wxGetTempFileName(const wxString& prefix, wxString& buf) { #if wxUSE_FILE - wxChar *cbuf = wxGetTempFileName(prefix); - buf = cbuf; - delete [] buf; + buf = wxFileName::CreateTempFileName(prefix); return !buf.empty(); #else // !wxUSE_FILE -- 2.45.2