aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-01-30 21:32:01 +0800
committerChristian Persch <chpe@src.gnome.org>2006-01-30 21:32:01 +0800
commitb64718c3951cec3dfb756ebe5f8c0cee5b8369c4 (patch)
treea19656825743a14fa604be4157c8e0036a2af4b0
parent6fc0b62b266caafd8e0406c457828a272da48f1a (diff)
downloadgsoc2013-epiphany-b64718c3951cec3dfb756ebe5f8c0cee5b8369c4.tar
gsoc2013-epiphany-b64718c3951cec3dfb756ebe5f8c0cee5b8369c4.tar.gz
gsoc2013-epiphany-b64718c3951cec3dfb756ebe5f8c0cee5b8369c4.tar.bz2
gsoc2013-epiphany-b64718c3951cec3dfb756ebe5f8c0cee5b8369c4.tar.lz
gsoc2013-epiphany-b64718c3951cec3dfb756ebe5f8c0cee5b8369c4.tar.xz
gsoc2013-epiphany-b64718c3951cec3dfb756ebe5f8c0cee5b8369c4.tar.zst
gsoc2013-epiphany-b64718c3951cec3dfb756ebe5f8c0cee5b8369c4.zip
Release the finder on dispose not finalize.
2006-01-30 Christian Persch <chpe@cvs.gnome.org> * src/ephy-find-toolbar.c: (ephy_find_toolbar_dispose), (ephy_find_toolbar_class_init): Release the finder on dispose not finalize.
-rw-r--r--ChangeLog7
-rw-r--r--src/ephy-find-toolbar.c7
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 742b12a70..0b317dbe1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-01-30 Christian Persch <chpe@cvs.gnome.org>
+
+ * src/ephy-find-toolbar.c: (ephy_find_toolbar_dispose),
+ (ephy_find_toolbar_class_init):
+
+ Release the finder on dispose not finalize.
+
2006-01-30 Peter Harvey <peter.a.harvey@gmail.com>
* src/bookmarks/ephy-bookmark-properties.c
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c
index 5de2d19ec..7841db4dc 100644
--- a/src/ephy-find-toolbar.c
+++ b/src/ephy-find-toolbar.c
@@ -440,7 +440,7 @@ ephy_find_toolbar_init (EphyFindToolbar *toolbar)
}
static void
-ephy_find_toolbar_finalize (GObject *object)
+ephy_find_toolbar_dispose (GObject *object)
{
EphyFindToolbar *toolbar = EPHY_FIND_TOOLBAR (object);
EphyFindToolbarPrivate *priv = toolbar->priv;
@@ -448,9 +448,10 @@ ephy_find_toolbar_finalize (GObject *object)
if (priv->find != NULL)
{
g_object_unref (priv->find);
+ priv->find = NULL;
}
- parent_class->finalize (object);
+ parent_class->dispose (object);
}
static void
@@ -487,7 +488,7 @@ ephy_find_toolbar_class_init (EphyFindToolbarClass *klass)
parent_class = g_type_class_peek_parent (klass);
- object_class->finalize = ephy_find_toolbar_finalize;
+ object_class->dispose = ephy_find_toolbar_dispose;
object_class->get_property = ephy_find_toolbar_get_property;
object_class->set_property = ephy_find_toolbar_set_property;