projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
047d9ce
)
gtestdbus: Don't destroy GSource twice
author
Stef Walter
<stefw@gnome.org>
Sat, 9 Nov 2013 19:17:49 +0000
(20:17 +0100)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 23 Nov 2013 18:47:29 +0000
(13:47 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=711806
gio/gtestdbus.c
patch
|
blob
|
history
diff --git
a/gio/gtestdbus.c
b/gio/gtestdbus.c
index
0b4ef6b
..
bff39f1
100644
(file)
--- 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);
+ }
g_main_loop_unref (data.loop);
return data.timed_out;