[gimp/soc-2011-seamless-clone2] plug-ins: fix memory leak in file-xbm
- From: Clayton Walker <claytonw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2011-seamless-clone2] plug-ins: fix memory leak in file-xbm
- Date: Wed, 8 May 2013 14:56:52 +0000 (UTC)
commit bd3825d80a2b067405ff78e0e8c78a386af14647
Author: Michael Henning <drawoc darkrefraction com>
Date: Wed Jan 16 18:48:13 2013 -0500
plug-ins: fix memory leak in file-xbm
Found using clang's scan-build.
plug-ins/common/file-xbm.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/common/file-xbm.c b/plug-ins/common/file-xbm.c
index 52c9d14..bda8c67 100644
--- a/plug-ins/common/file-xbm.c
+++ b/plug-ins/common/file-xbm.c
@@ -1164,6 +1164,8 @@ save_image (const gchar *filename,
g_object_unref (buffer);
fclose (fp);
+ g_free (data);
+
gimp_progress_update (1.0);
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]