[gimp/wip/animation: 111/197] plug-ins: return value of gimp_image_get_layers() must be freed...
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/animation: 111/197] plug-ins: return value of gimp_image_get_layers() must be freed...
- Date: Sat, 7 Oct 2017 03:07:46 +0000 (UTC)
commit 0d3b17d678dd39991943c16b2a059560ce89bc7c
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]