[gimp/wip/animation: 100/182] plug-ins: cleanup before re-loading default animation on parsing failure.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/animation: 100/182] plug-ins: cleanup before re-loading default animation on parsing failure.
- Date: Wed, 2 Aug 2017 00:12:00 +0000 (UTC)
commit e4a7c0177a226dc9b23bbaa3890aab7a4aac56be
Author: Jehan <jehan girinstud io>
Date: Wed Nov 16 16:40:51 2016 +0100
plug-ins: cleanup before re-loading default animation on parsing failure.
.../animation-play/core/animation-celanimation.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/animation-play/core/animation-celanimation.c
b/plug-ins/animation-play/core/animation-celanimation.c
index c2c29f0..ce1f4ff 100644
--- a/plug-ins/animation-play/core/animation-celanimation.c
+++ b/plug-ins/animation-play/core/animation-celanimation.c
@@ -642,6 +642,7 @@ animation_cel_animation_load_xml (Animation *animation,
/* If XML parsing failed, just reset the animation. */
if (error)
{
+ animation_cel_animation_cleanup (ANIMATION_CEL_ANIMATION (animation));
animation_cel_animation_load (animation);
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]