deform-effect: Check against NULL pointers

Do not try to disconnect signal handlers from NULL pointers.
This commit is contained in:
Emmanuele Bassi 2012-01-12 10:34:26 +00:00
parent 20e63532a4
commit cce2e25ac7

View File

@ -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;
}