mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
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.
This commit is contained in:
parent
1543baddee
commit
35e331b869
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user