projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20e6353
)
deform-effect: Check against NULL pointers
author
Emmanuele Bassi
<ebassi@gnome.org>
Thu, 12 Jan 2012 10:34:26 +0000
(10:34 +0000)
committer
Emmanuele Bassi
<ebassi@gnome.org>
Thu, 12 Jan 2012 10:34:26 +0000
(10:34 +0000)
Do not try to disconnect signal handlers from NULL pointers.
clutter/clutter-deform-effect.c
patch
|
blob
|
history
diff --git
a/clutter/clutter-deform-effect.c
b/clutter/clutter-deform-effect.c
index
55e3f0e
..
6ed4bf1
100644
(file)
--- 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;
}