[librsvg] fix memory leak.



commit 3e3b9d3a2d0b7e3abeadba224619ebe635e18f83
Author: Hiroyuki Ikezoe <hiikezoe gnome org>
Date:   Thu May 27 20:29:57 2010 +0900

    fix memory leak.

 rsvg-image.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/rsvg-image.c b/rsvg-image.c
index 77494b6..73e06ca 100644
--- a/rsvg-image.c
+++ b/rsvg-image.c
@@ -55,6 +55,7 @@ rsvg_acquire_base64_resource (const char *data, GError ** error)
     if (bufptr) {
         array = g_byte_array_sized_new (buffer_len);
         g_byte_array_append (array, bufptr, buffer_len);
+        g_free (bufptr);
     }
 
     return array;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]