[glib/wip/gcleanup: 74/79] paramspec-test: Fix leaks in tests
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/gcleanup: 74/79] paramspec-test: Fix leaks in tests
- Date: Sun, 10 Nov 2013 15:25:44 +0000 (UTC)
commit 9eaf31c1315ba8ddbb94f4a196e6b990bddb0b63
Author: Stef Walter <stefw gnome org>
Date: Sun Nov 10 15:56:32 2013 +0100
paramspec-test: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711779
tests/gobject/paramspec-test.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/gobject/paramspec-test.c b/tests/gobject/paramspec-test.c
index 129a24f..5b2e834 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]