diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-06-12 02:02:48 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2009-06-12 02:02:48 +0800 |
commit | 2440c52f3ac77481d530a8153f09376ca4f61e4f (patch) | |
tree | 7e5d648ef28b773e20c771a584e0b1cb5649b8c7 /libempathy-gtk | |
parent | fd8a3a5ef0de9951d185d18200c322a4b1714288 (diff) | |
download | gsoc2013-empathy-2440c52f3ac77481d530a8153f09376ca4f61e4f.tar gsoc2013-empathy-2440c52f3ac77481d530a8153f09376ca4f61e4f.tar.gz gsoc2013-empathy-2440c52f3ac77481d530a8153f09376ca4f61e4f.tar.bz2 gsoc2013-empathy-2440c52f3ac77481d530a8153f09376ca4f61e4f.tar.lz gsoc2013-empathy-2440c52f3ac77481d530a8153f09376ca4f61e4f.tar.xz gsoc2013-empathy-2440c52f3ac77481d530a8153f09376ca4f61e4f.tar.zst gsoc2013-empathy-2440c52f3ac77481d530a8153f09376ca4f61e4f.zip |
Move g_object_unref to dispose instead of finalize
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-theme-adium.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c index 74d5591b6..1bcc62fb9 100644 --- a/libempathy-gtk/empathy-theme-adium.c +++ b/libempathy-gtk/empathy-theme-adium.c @@ -691,13 +691,26 @@ theme_adium_finalize (GObject *object) g_free (priv->out_nextcontent_html); g_free (priv->default_avatar_filename); g_free (priv->path); - g_object_unref (priv->smiley_manager); + + G_OBJECT_CLASS (empathy_theme_adium_parent_class)->finalize (object); +} + +static void +theme_adium_dispose (GObject *object) +{ + EmpathyThemeAdiumPriv *priv = GET_PRIV (object); + + if (priv->smiley_manager) { + g_object_unref (priv->smiley_manager); + priv->smiley_manager = NULL; + } if (priv->last_contact) { g_object_unref (priv->last_contact); + priv->last_contact = NULL; } - G_OBJECT_CLASS (empathy_theme_adium_parent_class)->finalize (object); + G_OBJECT_CLASS (empathy_theme_adium_parent_class)->dispose (object); } static void @@ -749,6 +762,7 @@ empathy_theme_adium_class_init (EmpathyThemeAdiumClass *klass) GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = theme_adium_finalize; + object_class->dispose = theme_adium_dispose; object_class->constructed = theme_adium_constructed; object_class->get_property = theme_adium_get_property; object_class->set_property = theme_adium_set_property; |