paramspec-test: Fix leaks in tests
authorStef Walter <stefw@gnome.org>
Sun, 10 Nov 2013 14:56:32 +0000 (15:56 +0100)
committerStef Walter <stefw@gnome.org>
Mon, 11 Nov 2013 06:26:53 +0000 (07:26 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=711779

tests/gobject/paramspec-test.c

index 129a24f..5b2e834 100644 (file)
@@ -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