mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
resources: tests: Plug a mem leak
==509== 700 (20 direct, 680 indirect) bytes in 1 blocks are definitely lost in loss record 828 of 837 ==509== at 0x402AD89: malloc (vg_replace_malloc.c:236) ==509== by 0x4084724: standard_malloc (gmem.c:85) ==509== by 0x40847C7: g_malloc (gmem.c:159) ==509== by 0x409B1E1: g_slice_alloc (gslice.c:1003) ==509== by 0x405396B: g_bytes_new_with_free_func (gbytes.c:173) ==509== by 0x405390D: g_bytes_new_take (gbytes.c:122) ==509== by 0x804A48C: test_resource_data (resources.c:174)
This commit is contained in:
parent
6789ab2294
commit
0ebb6339d1
@ -172,6 +172,7 @@ test_resource_data (void)
|
||||
|
||||
data = g_bytes_new_take (content, content_size);
|
||||
resource = g_resource_new_from_data (data, &error);
|
||||
g_bytes_unref (data);
|
||||
g_assert (resource != NULL);
|
||||
g_assert_no_error (error);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user