[librsvg] rsvg-view: Plug a mem leak
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] rsvg-view: Plug a mem leak
- Date: Tue, 21 Feb 2012 12:39:15 +0000 (UTC)
commit c8f972635535c5961063e8a16dbbf74f4aaac816
Author: Christian Persch <chpe gnome org>
Date: Tue Feb 21 13:38:24 2012 +0100
rsvg-view: Plug a mem leak
==9159== 48 bytes in 1 blocks are definitely lost in loss record 5,116 of 6,936
==9159== at 0x402AD89: malloc (vg_replace_malloc.c:236)
==9159== by 0x4D19714: standard_malloc (gmem.c:85)
==9159== by 0x4D197B7: g_malloc (gmem.c:159)
==9159== by 0x4D301D1: g_slice_alloc (gslice.c:1003)
==9159== by 0x4D30217: g_slice_alloc0 (gslice.c:1029)
==9159== by 0x4A3067F: g_type_create_instance (gtype.c:1872)
==9159== by 0x4A19C79: g_object_constructor (gobject.c:1839)
==9159== by 0x4A1937A: g_object_newv (gobject.c:1622)
==9159== by 0x4A19168: g_object_new (gobject.c:1532)
==9159== by 0x47CFFCF: _g_local_file_input_stream_new (glocalfileinputstream.c:152)
==9159== by 0x47C905D: g_local_file_read (glocalfile.c:1339)
==9159== by 0x46FEB6A: g_file_read (gfile.c:1481)
==9159== by 0x804C061: main (test-display.c:707)
test-display.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/test-display.c b/test-display.c
index 34b9125..ca17dea 100644
--- a/test-display.c
+++ b/test-display.c
@@ -758,6 +758,7 @@ main (int argc, char **argv)
NULL /* cancellable */,
&err);
g_object_unref (base_file);
+ g_object_unref (input);
if (info.handle == NULL) {
g_printerr ("Failed to load SVG: %s\n", err->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]