mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 23:16:14 +01:00
gvalue-test: Fix leaks in test
https://bugzilla.gnome.org/show_bug.cgi?id=711779
This commit is contained in:
parent
83301d8c1f
commit
e6de9c6940
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user