[clutter] deform-effect: Check against NULL pointers
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] deform-effect: Check against NULL pointers
- Date: Thu, 12 Jan 2012 10:41:26 +0000 (UTC)
commit cce2e25ac7ef395d880352c93272256ea088c2dd
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Jan 12 10:34:26 2012 +0000
deform-effect: Check against NULL pointers
Do not try to disconnect signal handlers from NULL pointers.
clutter/clutter-deform-effect.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-deform-effect.c b/clutter/clutter-deform-effect.c
index 55e3f0e..6ed4bf1 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]