[gnome-commander] Fix for 'g_source_remove: assertion "tag > 0" failed' assertion



commit 2f8f3488e2ed63fa04428be8a027b6e6da626a96
Author: Martin Riarte <martinriarte opticare com ar>
Date:   Fri Aug 6 23:28:53 2010 +0200

    Fix for 'g_source_remove: assertion "tag > 0" failed' assertion

 src/gnome-cmd-file-props-dialog.cc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-file-props-dialog.cc b/src/gnome-cmd-file-props-dialog.cc
index 686dc83..8835026 100644
--- a/src/gnome-cmd-file-props-dialog.cc
+++ b/src/gnome-cmd-file-props-dialog.cc
@@ -142,7 +142,8 @@ static void calc_tree_size_func (GnomeCmdFilePropsDialogPrivate *data)
 // Tells the thread to exit and then waits for it to do so.
 static gboolean join_thread_func (GnomeCmdFilePropsDialogPrivate *data)
 {
-    g_source_remove (data->updater_proc_id);
+    if (data->updater_proc_id)
+        g_source_remove (data->updater_proc_id);
 
     if (data->thread)
         g_thread_join (data->thread);



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