mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 19:36:18 +01:00
glib/tests: fix memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=669372 Signed-off-by: Ravi Sankar Guntur <ravi.g@samsung.com>
This commit is contained in:
parent
46affb0cd8
commit
bd79c00537
@ -881,6 +881,7 @@ test_non_utf8_printf (void)
|
|||||||
if (strstr (setlocale (LC_ALL, NULL), "ja_JP") == NULL)
|
if (strstr (setlocale (LC_ALL, NULL), "ja_JP") == NULL)
|
||||||
{
|
{
|
||||||
g_test_message ("locale ja_JP.eucjp not available, skipping non-UTF8 tests");
|
g_test_message ("locale ja_JP.eucjp not available, skipping non-UTF8 tests");
|
||||||
|
g_free (oldlocale);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -942,6 +942,7 @@ test_destroy_modify (void)
|
|||||||
FakeFreeData *ffd = g_ptr_array_index (fake_free_data, i);
|
FakeFreeData *ffd = g_ptr_array_index (fake_free_data, i);
|
||||||
|
|
||||||
g_assert (ffd->freed);
|
g_assert (ffd->freed);
|
||||||
|
g_free (ffd->string);
|
||||||
g_free (ffd);
|
g_free (ffd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user