mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 22:52:09 +01:00
enums: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711779
This commit is contained in:
parent
dc72039c16
commit
ac6d35b4df
@ -48,6 +48,8 @@ test_enum_basic (void)
|
|||||||
g_assert_cmpint (val->value, ==, 1);
|
g_assert_cmpint (val->value, ==, 1);
|
||||||
val = g_enum_get_value_by_nick (class, "purple");
|
val = g_enum_get_value_by_nick (class, "purple");
|
||||||
g_assert (val == NULL);
|
g_assert (val == NULL);
|
||||||
|
|
||||||
|
g_type_class_unref (class);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const GFlagsValue my_flag_values[] =
|
static const GFlagsValue my_flag_values[] =
|
||||||
@ -110,6 +112,8 @@ test_flags_basic (void)
|
|||||||
|
|
||||||
test_flags_transform_to_string (&value);
|
test_flags_transform_to_string (&value);
|
||||||
g_value_unset (&value);
|
g_value_unset (&value);
|
||||||
|
|
||||||
|
g_type_class_unref (class);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user