Fix mem leak.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2006-10-19 12:08:29 +00:00
parent dc5a84857d
commit 03b5e90b0e

View File

@ -1295,7 +1295,9 @@ wxChar *wxGetTempFileName(const wxString& prefix, wxChar *buf)
bool wxGetTempFileName(const wxString& prefix, wxString& buf)
{
#if wxUSE_FILE
buf = wxGetTempFileName(prefix);
wxChar *cbuf = wxGetTempFileName(prefix);
buf = cbuf;
delete [] buf;
return !buf.empty();
#else // !wxUSE_FILE