[gnome-flashback] Revert "notifications: unref in dispose not in finalize"



commit 65d282ea057dcc69c69fc909c228e13f5ca20495
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Apr 25 22:43:00 2016 +0300

    Revert "notifications: unref in dispose not in finalize"
    
    This reverts commit e6518b96079342f442369ec3326a6c434204deda.

 gnome-flashback/libnotifications/gf-bubble.c |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/gnome-flashback/libnotifications/gf-bubble.c b/gnome-flashback/libnotifications/gf-bubble.c
index 282c3ef..0650bcf 100644
--- a/gnome-flashback/libnotifications/gf-bubble.c
+++ b/gnome-flashback/libnotifications/gf-bubble.c
@@ -420,9 +420,21 @@ gf_bubble_dispose (GObject *object)
       priv->changed_id = 0;
     }
 
+  G_OBJECT_CLASS (gf_bubble_parent_class)->dispose (object);
+}
+
+static void
+gf_bubble_finalize (GObject *object)
+{
+  GfBubble *bubble;
+  GfBubblePrivate *priv;
+
+  bubble = GF_BUBBLE (object);
+  priv = gf_bubble_get_instance_private (bubble);
+
   g_clear_object (&priv->notification);
 
-  G_OBJECT_CLASS (gf_bubble_parent_class)->dispose (object);
+  G_OBJECT_CLASS (gf_bubble_parent_class)->finalize (object);
 }
 
 static gboolean
@@ -502,6 +514,7 @@ gf_bubble_class_init (GfBubbleClass *bubble_class)
   widget_class = GTK_WIDGET_CLASS (bubble_class);
 
   object_class->dispose = gf_bubble_dispose;
+  object_class->finalize = gf_bubble_finalize;
 
   widget_class->button_release_event = gf_bubble_button_release_event;
   widget_class->get_preferred_width = gf_bubble_get_preferred_width;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]