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:
83301d8
)
gvalue-test: Fix leaks in test
author
Stef Walter
<stefw@gnome.org>
Sun, 10 Nov 2013 14:55:56 +0000
(15:55 +0100)
committer
Stef Walter
<stefw@gnome.org>
Mon, 11 Nov 2013 06:26:28 +0000
(07:26 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=711779
tests/gobject/gvalue-test.c
patch
|
blob
|
history
diff --git
a/tests/gobject/gvalue-test.c
b/tests/gobject/gvalue-test.c
index
fa7bede
..
b928d8b
100644
(file)
--- a/
tests/gobject/gvalue-test.c
+++ b/
tests/gobject/gvalue-test.c
@@
-355,6
+355,7
@@
test_copying (void)
error = lcopy (&value, &c);
g_assert (error == NULL);
g_assert (strcmp (c, "string ?") == 0);
+ g_free (c);
}
{
@@
-380,6
+381,7
@@
test_copying (void)
g_assert (g_variant_is_of_type (c, G_VARIANT_TYPE ("u")));
g_assert_cmpuint (g_variant_get_uint32 (c), ==, 42);
g_variant_unref (c);
+ g_value_unset (&value);
}
}