[glib] resources: tests: Plug a mem leak
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] resources: tests: Plug a mem leak
- Date: Sun, 5 Feb 2012 18:57:53 +0000 (UTC)
commit e194a9032f03a14b4a2be85c370a9cf52faeb3d2
Author: Christian Persch <chpe gnome org>
Date: Sun Feb 5 16:16:37 2012 +0100
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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/resources.c b/gio/tests/resources.c
index 84ab854..d18103d 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]