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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user