shell: Destroy the page instead of removing it

Because we don't actually need the child simply removed.
Works-around run-time warnings with clutter-gtk.
This commit is contained in:
Bastien Nocera 2012-05-16 13:13:43 +01:00
parent 75323fffb2
commit 835a09e1f8

View file

@ -439,8 +439,7 @@ remove_on_complete (ClutterTimeline *timeline,
RemoveData *data)
{
data->notebook->priv->removed_pages = g_list_remove (data->notebook->priv->removed_pages, data);
clutter_actor_remove_child (data->notebook->priv->bin,
data->frame);
clutter_actor_destroy (data->frame);
g_free (data);
}