[evolution] Bug #687360 - Crash on quit in gtk_style_context_get_valist()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #687360 - Crash on quit in gtk_style_context_get_valist()
- Date: Thu, 29 Nov 2012 13:23:14 +0000 (UTC)
commit c073de6c4c3fac8a724bd85e570181d7b3f4bd47
Author: Milan Crha <mcrha redhat com>
Date: Thu Nov 29 14:22:19 2012 +0100
Bug #687360 - Crash on quit in gtk_style_context_get_valist()
addressbook/gui/widgets/eab-contact-formatter.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/addressbook/gui/widgets/eab-contact-formatter.c b/addressbook/gui/widgets/eab-contact-formatter.c
index 7a001cf..a389318 100644
--- a/addressbook/gui/widgets/eab-contact-formatter.c
+++ b/addressbook/gui/widgets/eab-contact-formatter.c
@@ -1126,7 +1126,7 @@ eab_contact_formatter_get_property (GObject *object,
}
static void
-eab_contact_formatter_finalize (GObject *object)
+eab_contact_formatter_dispose (GObject *object)
{
EABContactFormatter *formatter;
@@ -1137,7 +1137,12 @@ eab_contact_formatter_finalize (GObject *object)
formatter->priv->contact = NULL;
}
- G_OBJECT_CLASS (eab_contact_formatter_parent_class)->finalize (object);
+ if (formatter->priv->style) {
+ g_object_unref (formatter->priv->style);
+ formatter->priv->style = NULL;
+ }
+
+ G_OBJECT_CLASS (eab_contact_formatter_parent_class)->dispose (object);
}
static void
@@ -1148,7 +1153,7 @@ eab_contact_formatter_class_init (EABContactFormatterClass *class)
g_type_class_add_private (class, sizeof (EABContactFormatterClass));
object_class = G_OBJECT_CLASS (class);
- object_class->finalize = eab_contact_formatter_finalize;
+ object_class->dispose = eab_contact_formatter_dispose;
object_class->set_property = eab_contact_formatter_set_property;
object_class->get_property = eab_contact_formatter_get_property;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]