[gnome-commander/gcmd-1-2-8] Fix for 'g_source_remove: assertion "tag > 0" failed' assertion
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-2-8] Fix for 'g_source_remove: assertion "tag > 0" failed' assertion
- Date: Fri, 6 Aug 2010 21:29:57 +0000 (UTC)
commit 8d3c2810c99accb51dccaf3f640a64ce89ebeabc
Author: Martin Riarte <martinriarte opticare com ar>
Date: Fri Aug 6 23:18:43 2010 +0200
Fix for 'g_source_remove: assertion "tag > 0" failed' assertion
src/gnome-cmd-file-props-dialog.cc | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-file-props-dialog.cc b/src/gnome-cmd-file-props-dialog.cc
index 0b2a707..ebb6238 100644
--- a/src/gnome-cmd-file-props-dialog.cc
+++ b/src/gnome-cmd-file-props-dialog.cc
@@ -141,8 +141,9 @@ 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]