[gimp/wip/animation: 178/197] plug-ins: check for object existence before disconnecting handler.



commit 23c6d5ea2187767c858fd2d4a36d47be8e5ffc75
Author: Jehan <jehan girinstud io>
Date:   Mon Jul 17 12:20:03 2017 +0200

    plug-ins: check for object existence before disconnecting handler.

 .../widgets/animation-keyframe-view.c              |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/animation-play/widgets/animation-keyframe-view.c 
b/plug-ins/animation-play/widgets/animation-keyframe-view.c
index 48a0d7b..324a34e 100644
--- a/plug-ins/animation-play/widgets/animation-keyframe-view.c
+++ b/plug-ins/animation-play/widgets/animation-keyframe-view.c
@@ -196,9 +196,10 @@ animation_keyframe_view_hide (AnimationKeyFrameView *view)
   g_signal_handlers_disconnect_by_func (view->priv->offset_entry,
                                         G_CALLBACK (on_offset_entry_changed),
                                         view);
-  g_signal_handlers_disconnect_by_func (view->priv->camera,
-                                        G_CALLBACK (on_offsets_changed),
-                                        view);
+  if (view->priv->camera)
+    g_signal_handlers_disconnect_by_func (view->priv->camera,
+                                          G_CALLBACK (on_offsets_changed),
+                                          view);
 }
 
 /************ Private Functions ****************/


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