From cce2e25ac7ef395d880352c93272256ea088c2dd Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 12 Jan 2012 10:34:26 +0000 Subject: [PATCH] deform-effect: Check against NULL pointers Do not try to disconnect signal handlers from NULL pointers. --- clutter/clutter-deform-effect.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clutter/clutter-deform-effect.c b/clutter/clutter-deform-effect.c index 55e3f0e81..6ed4bf17c 100644 --- a/clutter/clutter-deform-effect.c +++ b/clutter/clutter-deform-effect.c @@ -148,7 +148,9 @@ clutter_deform_effect_set_actor (ClutterActorMeta *meta, { ClutterActor *old_actor = clutter_actor_meta_get_actor (meta); - g_signal_handler_disconnect (old_actor, priv->allocation_id); + if (old_actor != NULL) + g_signal_handler_disconnect (old_actor, priv->allocation_id); + priv->allocation_id = 0; }