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



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