memory leak fixes in file dialogs (patch 783812)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-09-21 00:06:05 +00:00
parent 032b711c92
commit 07421d20b5
4 changed files with 4 additions and 3 deletions

View File

@@ -215,6 +215,7 @@ wxGTK
- fixed compilation with --disable-compat-22
- set the event object correctly for wxMenu events (Bob Balfour)
- fixed memory leak in wxFileDialog (Christian Sturmlechner)
wxMSW:

View File

@@ -1445,7 +1445,7 @@ void wxFileDialog::HandleAction( const wxString &fn )
wxString cwd;
wxSplitPath(filename, &cwd, NULL, NULL);
if ( cwd != wxGetWorkingDirectory() )
if ( cwd != wxGetCwd() )
{
wxSetWorkingDirectory(cwd);
}

View File

@@ -89,7 +89,7 @@ void gtk_filedialog_ok_callback( GtkWidget *WXUNUSED(widget), wxFileDialog *dial
wxString cwd;
wxSplitPath(filename, &cwd, NULL, NULL);
if ( cwd != wxGetWorkingDirectory() )
if ( cwd != wxGetCwd() )
{
wxSetWorkingDirectory(cwd);
}

View File

@@ -89,7 +89,7 @@ void gtk_filedialog_ok_callback( GtkWidget *WXUNUSED(widget), wxFileDialog *dial
wxString cwd;
wxSplitPath(filename, &cwd, NULL, NULL);
if ( cwd != wxGetWorkingDirectory() )
if ( cwd != wxGetCwd() )
{
wxSetWorkingDirectory(cwd);
}