[glib] tests/closure: Fix invalid unref
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] tests/closure: Fix invalid unref
- Date: Sun, 21 Jul 2013 19:25:34 +0000 (UTC)
commit 35e331b86912813a7d18b0ca3fb951f5759c11e8
Author: Colin Walters <walters verbum org>
Date: Sun Jul 21 19:42:34 2013 +0100
tests/closure: Fix invalid unref
The closure is floating, g_source_set_closure() will claim the
ref, so we do not need to unref it.
gobject/tests/closure.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gobject/tests/closure.c b/gobject/tests/closure.c
index 71a50de..78392ba 100644
--- 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]