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



commit 728f9ad8eec125c7ffc176a1358f00be60f27f84
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]