From e194a9032f03a14b4a2be85c370a9cf52faeb3d2 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 5 Feb 2012 16:16:37 +0100 Subject: [PATCH] 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) --- gio/tests/resources.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gio/tests/resources.c b/gio/tests/resources.c index 84ab85499..d18103de0 100644 --- a/gio/tests/resources.c +++ b/gio/tests/resources.c @@ -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);