[gimp/wip/animation: 107/197] plug-ins: cleanup before re-loading default animation on parsing failure.



commit dffa184d0f35b575b14d6660d1fcb6298ec0023d
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]