- Fix old leak.
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1248 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
f19ada302b
commit
0c8e39eeec
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue