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:
1543bad
)
tests/closure: Fix invalid unref
author
Colin Walters
<walters@verbum.org>
Sun, 21 Jul 2013 18:42:34 +0000
(19:42 +0100)
committer
Colin Walters
<walters@verbum.org>
Sun, 21 Jul 2013 18:42:34 +0000
(19:42 +0100)
The closure is floating, g_source_set_closure() will claim the
ref, so we do not need to unref it.
gobject/tests/closure.c
patch
|
blob
|
history
diff --git
a/gobject/tests/closure.c
b/gobject/tests/closure.c
index
71a50de
..
78392ba
100644
(file)
--- a/
gobject/tests/closure.c
+++ b/
gobject/tests/closure.c
@@
-24,7
+24,6
@@
test_source (GSource *one, GCallback quit_callback)
g_main_loop_run (loop);
g_source_destroy (one);
- g_closure_unref (closure);
g_main_loop_unref (loop);
}