[gimp/wip/animation: 287/373] plug-ins: return value of gimp_image_get_layers() must be freed...



commit 00d5651e91fefa47494232c68ee9b942e5f6bfb5
Author: Jehan <jehan girinstud io>
Date:   Sat Dec 3 23:48:26 2016 +0100

    plug-ins: return value of gimp_image_get_layers() must be freed...
    
    ... with g_free().

 .../animation-play/widgets/animation-layer-view.c  |    1 +
 .../animation-play/widgets/animation-storyboard.c  |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/animation-play/widgets/animation-layer-view.c 
b/plug-ins/animation-play/widgets/animation-layer-view.c
index e41ba58..c7e632c 100644
--- a/plug-ins/animation-play/widgets/animation-layer-view.c
+++ b/plug-ins/animation-play/widgets/animation-layer-view.c
@@ -387,6 +387,7 @@ animation_layer_view_fill (AnimationLayerView *view,
           animation_layer_view_fill (view, store, layers[i], &iter);
         }
     }
+  g_free (layers);
 }
 
 /* animation_layer_view_get_row:
diff --git a/plug-ins/animation-play/widgets/animation-storyboard.c 
b/plug-ins/animation-play/widgets/animation-storyboard.c
index 625e38f..d527782 100644
--- a/plug-ins/animation-play/widgets/animation-storyboard.c
+++ b/plug-ins/animation-play/widgets/animation-storyboard.c
@@ -436,6 +436,7 @@ animation_storyboard_load (Animation           *animation,
   g_signal_connect (view->priv->playback, "stop",
                     (GCallback) animation_storyboard_stopped,
                     view);
+  g_free (layers);
   gimp_image_delete (image_id);
 }
 


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