[gimp] plug-ins: fix memory leak in file-xbm



commit a9b014c3dd150f156dafabf7eb0ed1ad27b926de
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]