forked from enlightenment/efl
evas: reorder accessing Evas_Object to prevent accessing them after their death.
SVN revision: 60260
This commit is contained in:
parent
6b8645a8b4
commit
937cbfe675
|
@ -1450,6 +1450,14 @@ evas_render_updates_internal(Evas *e,
|
||||||
them from the pending list. */
|
them from the pending list. */
|
||||||
eina_array_remove(&e->pending_objects, pending_change, NULL);
|
eina_array_remove(&e->pending_objects, pending_change, NULL);
|
||||||
|
|
||||||
|
for (i = 0; i < e->render_objects.count; ++i)
|
||||||
|
{
|
||||||
|
Evas_Object *obj;
|
||||||
|
|
||||||
|
obj = eina_array_data_get(&e->render_objects, i);
|
||||||
|
obj->pre_render_done = 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* delete all objects flagged for deletion now */
|
/* delete all objects flagged for deletion now */
|
||||||
for (i = 0; i < e->delete_objects.count; ++i)
|
for (i = 0; i < e->delete_objects.count; ++i)
|
||||||
{
|
{
|
||||||
|
@ -1465,14 +1473,6 @@ evas_render_updates_internal(Evas *e,
|
||||||
e->output.changed = 0;
|
e->output.changed = 0;
|
||||||
e->invalidate = 0;
|
e->invalidate = 0;
|
||||||
|
|
||||||
for (i = 0; i < e->render_objects.count; ++i)
|
|
||||||
{
|
|
||||||
Evas_Object *obj;
|
|
||||||
|
|
||||||
obj = eina_array_data_get(&e->render_objects, i);
|
|
||||||
obj->pre_render_done = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* If their are some object to restack or some object to delete,
|
/* If their are some object to restack or some object to delete,
|
||||||
* it's useless to keep the render object list around. */
|
* it's useless to keep the render object list around. */
|
||||||
if (clean_them)
|
if (clean_them)
|
||||||
|
|
Loading…
Reference in New Issue