From 85deaacd30470f4801a996c6e291dec43270e70e Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sun, 30 Apr 2006 09:50:36 +0000 Subject: [PATCH] Fix mem leak. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/dirdlg.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gtk/dirdlg.cpp b/src/gtk/dirdlg.cpp index 29dba78b05..dd9b2e53d7 100644 --- a/src/gtk/dirdlg.cpp +++ b/src/gtk/dirdlg.cpp @@ -73,7 +73,10 @@ 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; + } } } -- 2.50.0