From 164af55a6e52075afbc335a3ff15fe9b48ac9f31 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Sun, 24 Oct 2010 14:45:16 +0200 Subject: [PATCH] Avoid warnings on ClutterClone with a NULL source clutter_clone_apply_transform should check the source before calling methods on it, else criticals will be emitted. http://bugzilla.clutter-project.org/show_bug.cgi?id=2381 --- clutter/clutter-clone.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clutter/clutter-clone.c b/clutter/clutter-clone.c index bb63905b3..e604e21ae 100644 --- a/clutter/clutter-clone.c +++ b/clutter/clutter-clone.c @@ -133,6 +133,10 @@ clutter_clone_apply_transform (ClutterActor *self, CoglMatrix *matrix) CLUTTER_ACTOR_CLASS (clutter_clone_parent_class)->apply_transform (self, matrix); + /* if we don't have a source, nothing else to do */ + if (priv->clone_source == NULL) + return; + /* get our allocated size */ clutter_actor_get_allocation_geometry (self, &geom);