[empathy] account-chooser: replace finalize by dispose
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] account-chooser: replace finalize by dispose
- Date: Thu, 27 Oct 2011 11:45:36 +0000 (UTC)
commit 40babd776c588ad4a2d8637d0c3bdd06933f3311
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Oct 24 14:17:26 2011 +0200
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
libempathy-gtk/empathy-account-chooser.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c
index c075768..8b03592 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]