]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix mem leak.
authorRobert Roebling <robert@roebling.de>
Sun, 30 Apr 2006 09:50:36 +0000 (09:50 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 30 Apr 2006 09:50:36 +0000 (09:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dirdlg.cpp

index 29dba78b056da2cce86f351980ac4c59e8e4493a..dd9b2e53d7e297a91eb445de5d8caba1d97c9cfe 100644 (file)
@@ -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;
+            }
         }
     }