projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
320f0b3
)
paramspec-test: Fix leaks in tests
author
Stef Walter
<stefw@gnome.org>
Sun, 10 Nov 2013 14:56:32 +0000
(15:56 +0100)
committer
Stef 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
patch
|
blob
|
history
diff --git
a/tests/gobject/paramspec-test.c
b/tests/gobject/paramspec-test.c
index 129a24f664c3e2187c8a707418bb33a8d5173684..5b2e8344121b2ec894494c7ec2b7b5e605b5122f 100644
(file)
--- 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