aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-24 20:17:26 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-27 19:44:29 +0800
commit40babd776c588ad4a2d8637d0c3bdd06933f3311 (patch)
tree31337f4510bcff3e446543c91941c28f13a2d43a /libempathy-gtk
parent71ae7d49c29a34af419792c8d8c6fb2a9e6b42ba (diff)
downloadgsoc2013-empathy-40babd776c588ad4a2d8637d0c3bdd06933f3311.tar
gsoc2013-empathy-40babd776c588ad4a2d8637d0c3bdd06933f3311.tar.gz
gsoc2013-empathy-40babd776c588ad4a2d8637d0c3bdd06933f3311.tar.bz2
gsoc2013-empathy-40babd776c588ad4a2d8637d0c3bdd06933f3311.tar.lz
gsoc2013-empathy-40babd776c588ad4a2d8637d0c3bdd06933f3311.tar.xz
gsoc2013-empathy-40babd776c588ad4a2d8637d0c3bdd06933f3311.tar.zst
gsoc2013-empathy-40babd776c588ad4a2d8637d0c3bdd06933f3311.zip
account-chooser: replace finalize by dispose
It just unref one object so dispose is the best place. https://bugzilla.gnome.org/show_bug.cgi?id=662609
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-account-chooser.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c
index c075768b9..8b0359276 100644
--- a/libempathy-gtk/empathy-account-chooser.c
+++ b/libempathy-gtk/empathy-account-chooser.c
@@ -321,13 +321,13 @@ account_chooser_constructed (GObject *object)
}
static void
-account_chooser_finalize (GObject *object)
+account_chooser_dispose (GObject *object)
{
- EmpathyAccountChooser *self = (EmpathyAccountChooser *) object;
+ EmpathyAccountChooser *self = EMPATHY_ACCOUNT_CHOOSER (object);
- g_object_unref (self->priv->manager);
+ g_clear_object (&self->priv->manager);
- G_OBJECT_CLASS (empathy_account_chooser_parent_class)->finalize (object);
+ G_OBJECT_CLASS (empathy_account_chooser_parent_class)->dispose (object);
}
static void
@@ -373,7 +373,7 @@ empathy_account_chooser_class_init (EmpathyAccountChooserClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->constructed = account_chooser_constructed;
- object_class->finalize = account_chooser_finalize;
+ object_class->dispose = account_chooser_dispose;
object_class->get_property = account_chooser_get_property;
object_class->set_property = account_chooser_set_property;