From 27da0799b8a2762e6ae44d0721014eeed8c36489 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 31 Oct 2013 23:07:10 +0100 Subject: [PATCH] signals: Fix memory leaks in signals unit tests https://bugzilla.gnome.org/show_bug.cgi?id=627423 --- gobject/tests/signals.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gobject/tests/signals.c b/gobject/tests/signals.c index 95c050195..a8ff35bca 100644 --- a/gobject/tests/signals.c +++ b/gobject/tests/signals.c @@ -872,6 +872,9 @@ test_emission_hook (void) g_signal_remove_emission_hook (simple_id, hook); g_signal_emit_by_name (test1, "simple"); g_assert_cmpint (count, ==, 2); + + g_object_unref (test1); + g_object_unref (test2); } static gboolean @@ -933,6 +936,8 @@ test_introspection (void) g_assert (query.signal_flags == G_SIGNAL_RUN_LAST); g_assert (query.return_type == G_TYPE_NONE); g_assert_cmpuint (query.n_params, ==, 0); + + g_free (ids); } static void