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:
dc72039
)
enums: Fix leaks in tests
author
Stef Walter
<stefw@gnome.org>
Thu, 7 Nov 2013 21:57:13 +0000
(22:57 +0100)
committer
Stef Walter
<stefw@gnome.org>
Mon, 11 Nov 2013 06:25:53 +0000
(07:25 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=711779
gobject/tests/enums.c
patch
|
blob
|
history
diff --git
a/gobject/tests/enums.c
b/gobject/tests/enums.c
index
2d05d4b
..
84ffed7
100644
(file)
--- a/
gobject/tests/enums.c
+++ b/
gobject/tests/enums.c
@@
-48,6
+48,8
@@
test_enum_basic (void)
g_assert_cmpint (val->value, ==, 1);
val = g_enum_get_value_by_nick (class, "purple");
g_assert (val == NULL);
+
+ g_type_class_unref (class);
}
static const GFlagsValue my_flag_values[] =
@@
-110,6
+112,8
@@
test_flags_basic (void)
test_flags_transform_to_string (&value);
g_value_unset (&value);
+
+ g_type_class_unref (class);
}
int