[gimp/wip/animation: 117/145] plug-ins: check camera existence before cleaning it up.



commit 1c20a69bce2e515260caacd162b7752b11fe1add
Author: Jehan <jehan girinstud io>
Date:   Mon May 29 13:01:58 2017 +0200

    plug-ins: check camera existence before cleaning it up.

 .../animation-play/core/animation-celanimation.c   |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/animation-play/core/animation-celanimation.c 
b/plug-ins/animation-play/core/animation-celanimation.c
index cbe2bb5..98272cc 100644
--- a/plug-ins/animation-play/core/animation-celanimation.c
+++ b/plug-ins/animation-play/core/animation-celanimation.c
@@ -1308,7 +1308,8 @@ animation_cel_animation_cleanup (AnimationCelAnimation *animation)
                     (GDestroyNotify) animation_cel_animation_clean_track);
   animation->priv->tracks   = NULL;
 
-  g_object_unref (animation->priv->camera);
+  if (animation->priv->camera)
+    g_object_unref (animation->priv->camera);
 }
 
 static void


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