mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-23 22:16:16 +01:00
resources: tests: Plug a mem leak
==28778== 700 (20 direct, 680 indirect) bytes in 1 blocks are definitely lost in loss record 842 of 863 ==28778== at 0x402AD89: malloc (vg_replace_malloc.c:236) ==28778== by 0x4084724: standard_malloc (gmem.c:85) ==28778== by 0x40847C7: g_malloc (gmem.c:159) ==28778== by 0x409B1E1: g_slice_alloc (gslice.c:1003) ==28778== by 0x405396B: g_bytes_new_with_free_func (gbytes.c:173) ==28778== by 0x405390D: g_bytes_new_take (gbytes.c:122) ==28778== by 0x804C2B1: test_uri_query_info (resources.c:435)
This commit is contained in:
parent
108e11875e
commit
e194a9032f
@ -434,6 +434,7 @@ test_uri_query_info (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