[gimp] plug-ins: returned value of gimp_image_get_layers() must be freed.



commit 6b33491ce470e17a4803f859c762f755ce392639
Author: Jehan <jehan girinstud io>
Date:   Fri Sep 4 18:24:21 2015 +0200

    plug-ins: returned value of gimp_image_get_layers() must be freed.

 plug-ins/common/file-gif-save.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/file-gif-save.c b/plug-ins/common/file-gif-save.c
index 7c14a0e..6c8242f 100644
--- a/plug-ins/common/file-gif-save.c
+++ b/plug-ins/common/file-gif-save.c
@@ -1157,7 +1157,7 @@ save_dialog (gint32 image_ID)
   gboolean       animation_supported = FALSE;
   gboolean       run;
 
-  gimp_image_get_layers (image_ID, &nlayers);
+  g_free (gimp_image_get_layers (image_ID, &nlayers));
   animation_supported = nlayers > 1;
 
   dialog = gimp_export_dialog_new (_("GIF"), PLUG_IN_BINARY, SAVE_PROC);


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