Fix mem leak.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-04-30 09:50:36 +00:00
parent b50747ea53
commit 85deaacd30

View File

@@ -73,9 +73,12 @@ static void gtk_filedialog_ok_callback(GtkWidget *widget, wxDirDialog *dialog)
wxMessageDialog dlg(dialog, msg, _("Confirm"),
wxYES_NO | wxICON_QUESTION);
if (dlg.ShowModal() != wxID_YES)
{
g_free(filename);
return;
}
}
}
// change to the directory where the user went if asked
if (style & wxCHANGE_DIR)