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



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

    sidebar: remove idle functions in dispose()

 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 df4e8a5..caab7c4 100644
--- a/src/dh-sidebar.c
+++ b/src/dh-sidebar.c
@@ -463,6 +463,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]