[devhelp/wip/swilmet/misc-improvements: 6/14] sidebar: remove idle functions in dispose()



commit bb92b7cf46223df23d8ca8cc47a7ca7765b1c619
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun May 24 17:24:39 2015 +0200

    sidebar: remove idle functions in dispose()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=749797

 src/dh-sidebar.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/dh-sidebar.c b/src/dh-sidebar.c
index 4c97bbb..db477e1 100644
--- a/src/dh-sidebar.c
+++ b/src/dh-sidebar.c
@@ -468,6 +468,16 @@ dh_sidebar_dispose (GObject *object)
 
         g_clear_object (&priv->book_manager);
 
+        if (priv->idle_complete_id != 0) {
+                g_source_remove (priv->idle_complete_id);
+                priv->idle_complete_id = 0;
+        }
+
+        if (priv->idle_filter_id != 0) {
+                g_source_remove (priv->idle_filter_id);
+                priv->idle_filter_id = 0;
+        }
+
         G_OBJECT_CLASS (dh_sidebar_parent_class)->dispose (object);
 }
 


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