* evas: Fix SEGV when smart object's child come from another layer than
the parent.
When we insert object inside a smart object, they could be attached to
another layer. As long as ref counting work, nothing wrong will happen.
But during destruction of an Evas, we were just looping over all layers,
destroying each of them, without checking for refcounting. This could
cause SEGV.
This patch introduce a third loop for wiping out all layers after
destroying all Evas_Object. So no more SEGV, and no performance
regression.
Note: Do not rely on evas_object_layer_get on smart object's child, it
could give you the wrong answer.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@41046
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33