[glib/wip/gcleanup] gtestdbus: Don't destroy GSource twice
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/gcleanup] gtestdbus: Don't destroy GSource twice
- Date: Sat, 9 Nov 2013 19:56:31 +0000 (UTC)
commit 76955a7ed8254bc3e226d845adb428ae0a354f12
Author: Stef Walter <stefw gnome org>
Date: Sat Nov 9 20:17:49 2013 +0100
gtestdbus: Don't destroy GSource twice
gio/gtestdbus.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gio/gtestdbus.c b/gio/gtestdbus.c
index 92d8711..c1aa991 100644
--- a/gio/gtestdbus.c
+++ b/gio/gtestdbus.c
@@ -93,13 +93,15 @@ _g_object_unref_and_wait_weak_notify (gpointer object)
g_main_loop_run (data.loop);
- g_source_remove (timeout_id);
-
if (data.timed_out)
{
g_warning ("Weak notify timeout, object ref_count=%d\n",
G_OBJECT (object)->ref_count);
}
+ else
+ {
+ g_source_remove (timeout_id);
+ }
return data.timed_out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]