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:
@@ -215,6 +215,7 @@ wxGTK
|
|||||||
|
|
||||||
- fixed compilation with --disable-compat-22
|
- fixed compilation with --disable-compat-22
|
||||||
- set the event object correctly for wxMenu events (Bob Balfour)
|
- set the event object correctly for wxMenu events (Bob Balfour)
|
||||||
|
- fixed memory leak in wxFileDialog (Christian Sturmlechner)
|
||||||
|
|
||||||
wxMSW:
|
wxMSW:
|
||||||
|
|
||||||
|
@@ -1445,7 +1445,7 @@ void wxFileDialog::HandleAction( const wxString &fn )
|
|||||||
wxString cwd;
|
wxString cwd;
|
||||||
wxSplitPath(filename, &cwd, NULL, NULL);
|
wxSplitPath(filename, &cwd, NULL, NULL);
|
||||||
|
|
||||||
if ( cwd != wxGetWorkingDirectory() )
|
if ( cwd != wxGetCwd() )
|
||||||
{
|
{
|
||||||
wxSetWorkingDirectory(cwd);
|
wxSetWorkingDirectory(cwd);
|
||||||
}
|
}
|
||||||
|
@@ -89,7 +89,7 @@ void gtk_filedialog_ok_callback( GtkWidget *WXUNUSED(widget), wxFileDialog *dial
|
|||||||
wxString cwd;
|
wxString cwd;
|
||||||
wxSplitPath(filename, &cwd, NULL, NULL);
|
wxSplitPath(filename, &cwd, NULL, NULL);
|
||||||
|
|
||||||
if ( cwd != wxGetWorkingDirectory() )
|
if ( cwd != wxGetCwd() )
|
||||||
{
|
{
|
||||||
wxSetWorkingDirectory(cwd);
|
wxSetWorkingDirectory(cwd);
|
||||||
}
|
}
|
||||||
|
@@ -89,7 +89,7 @@ void gtk_filedialog_ok_callback( GtkWidget *WXUNUSED(widget), wxFileDialog *dial
|
|||||||
wxString cwd;
|
wxString cwd;
|
||||||
wxSplitPath(filename, &cwd, NULL, NULL);
|
wxSplitPath(filename, &cwd, NULL, NULL);
|
||||||
|
|
||||||
if ( cwd != wxGetWorkingDirectory() )
|
if ( cwd != wxGetCwd() )
|
||||||
{
|
{
|
||||||
wxSetWorkingDirectory(cwd);
|
wxSetWorkingDirectory(cwd);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user