- Fix old leak.

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1248 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-09-17 19:12:52 +00:00
parent f19ada302b
commit 0c8e39eeec
2 changed files with 2 additions and 3 deletions

View File

@ -228,7 +228,7 @@ PreferencesEditor::PreferencesEditor(const std::string& gladefile)
close->signal_clicked().connect(sigc::mem_fun(*this, &PreferencesEditor::on_close));
// Window& main_window = get_initial_window();
preferences_dialog->show();
preferences_dialog->run();
}

View File

@ -77,8 +77,7 @@ using Gnome::Glade::Xml;
void
GuiBuilder::on_edit_preferences_activate()
{
new PreferencesEditor(); //FIXME: are we leaking this way? (definitely yes. use
// a refptr member data?)
PreferencesEditor(); // Will run the dialog inside the constructor.
}
void