From 1b9662046f4c98b8aa8aff63a0bbbfde3b6bf3f7 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sun, 10 Nov 2013 15:56:32 +0100 Subject: [PATCH] paramspec-test: Fix leaks in tests https://bugzilla.gnome.org/show_bug.cgi?id=711779 --- tests/gobject/paramspec-test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/gobject/paramspec-test.c b/tests/gobject/paramspec-test.c index 129a24f66..5b2e83441 100644 --- a/tests/gobject/paramspec-test.c +++ b/tests/gobject/paramspec-test.c @@ -196,6 +196,7 @@ test_param_spec_override (void) g_assert (modified && g_value_get_char (&value) == 40); g_param_spec_unref (pspec); + g_param_spec_unref (ospec); } static void @@ -220,6 +221,8 @@ test_param_spec_gtype (void) g_value_set_gtype (&value, G_TYPE_PARAM_INT); modified = g_param_value_validate (pspec, &value); g_assert (!modified && g_value_get_gtype (&value) == G_TYPE_PARAM_INT); + + g_param_spec_unref (pspec); } static void