diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-12-15 01:26:32 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-12-15 01:26:32 +0800 |
commit | 79400fff79976294cb92b3c47e696baac58491a5 (patch) | |
tree | 376ee25b8ad178465d74769c0fd682bf1912a816 | |
parent | 1616c205631056fa19b85aec166ea9019881f425 (diff) | |
download | gsoc2013-epiphany-79400fff79976294cb92b3c47e696baac58491a5.tar gsoc2013-epiphany-79400fff79976294cb92b3c47e696baac58491a5.tar.gz gsoc2013-epiphany-79400fff79976294cb92b3c47e696baac58491a5.tar.bz2 gsoc2013-epiphany-79400fff79976294cb92b3c47e696baac58491a5.tar.lz gsoc2013-epiphany-79400fff79976294cb92b3c47e696baac58491a5.tar.xz gsoc2013-epiphany-79400fff79976294cb92b3c47e696baac58491a5.tar.zst gsoc2013-epiphany-79400fff79976294cb92b3c47e696baac58491a5.zip |
Fix mem leaks. Fix a crash when finalizing a nautilus view after having
2003-12-14 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-nautilus-view.c: (ephy_nautilus_view_finalize),
(gnv_cmd_select_encoding), (gnv_cmd_file_print),
(gnv_cmd_edit_find):
Fix mem leaks.
Fix a crash when finalizing a nautilus view after having
used the find dialogue.
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | src/ephy-nautilus-view.c | 12 |
2 files changed, 19 insertions, 3 deletions
@@ -1,3 +1,13 @@ +2003-12-14 Christian Persch <chpe@cvs.gnome.org> + + * src/ephy-nautilus-view.c: (ephy_nautilus_view_finalize), + (gnv_cmd_select_encoding), (gnv_cmd_file_print), + (gnv_cmd_edit_find): + + Fix mem leaks. + Fix a crash when finalizing a nautilus view after having + used the find dialogue. + 2003-12-13 Christian Persch <chpe@cvs.gnome.org> * src/bookmarks/ephy-bookmarks-import.c: diff --git a/src/ephy-nautilus-view.c b/src/ephy-nautilus-view.c index 191e9fccb..7a05e0b91 100644 --- a/src/ephy-nautilus-view.c +++ b/src/ephy-nautilus-view.c @@ -280,6 +280,8 @@ ephy_nautilus_view_finalize (GObject *object) if (p->find_dialog) { + g_object_remove_weak_pointer (G_OBJECT (p->find_dialog), + (gpointer *) &p->find_dialog); g_object_unref (p->find_dialog); } @@ -531,7 +533,8 @@ gnv_cmd_select_encoding (BonoboUIComponent *uic, NULL)); ephy_dialog_set_modal (dialog, TRUE); - ephy_dialog_show (dialog); + ephy_dialog_run (dialog); + g_object_unref (dialog); } static void @@ -545,7 +548,8 @@ gnv_cmd_file_print (BonoboUIComponent *uic, dialog = ephy_print_dialog_new (NULL, p->embed, FALSE); ephy_dialog_set_modal (dialog, TRUE); - ephy_dialog_show (dialog); + ephy_dialog_run (dialog); + g_object_unref (dialog); } static void @@ -555,9 +559,11 @@ gnv_cmd_edit_find (BonoboUIComponent *uic, { EphyNautilusViewPrivate *p = view->priv; - if (!p->find_dialog) + if (p->find_dialog == NULL) { p->find_dialog = find_dialog_new (p->embed); + g_object_add_weak_pointer (G_OBJECT (p->find_dialog), + (gpointer *) &p->find_dialog); } ephy_dialog_show (p->find_dialog); |