[librsvg] fix memory leak.
- From: Hiroyuki Ikezoe <hiikezoe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] fix memory leak.
- Date: Thu, 27 May 2010 11:30:24 +0000 (UTC)
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]