if (ctx->old_actor != NULL)
{
- g_object_unref (ctx->old_actor);
clutter_container_remove (CLUTTER_CONTAINER (priv->actor), ctx->old_actor, NULL);
+ g_object_unref (ctx->old_actor);
}
g_object_unref (ctx->tile);
if (priv->content_actor != NULL)
{
+ /* it sometimes happen that the priv->content_actor has been destroyed,
+ * this assert will help determine when with no impact on the user */
+ g_assert (CLUTTER_IS_ACTOR (priv->content_actor));
+
if (fade_in == TRUE)
old_actor = g_object_ref (priv->content_actor);
else
clutter_container_add (CLUTTER_CONTAINER (priv->actor), actor, NULL);
- /* fixme: etemplate are leaked here */
if (fade_in == TRUE)
{
ClutterAnimation *animation;