From 937cbfe67505d4cb53aebe6387f460777f6006c1 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Mon, 13 Jun 2011 07:34:44 +0000 Subject: [PATCH] evas: reorder accessing Evas_Object to prevent accessing them after their death. SVN revision: 60260 --- legacy/evas/src/lib/canvas/evas_render.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/legacy/evas/src/lib/canvas/evas_render.c b/legacy/evas/src/lib/canvas/evas_render.c index 609d99f..874dd4b 100644 --- a/legacy/evas/src/lib/canvas/evas_render.c +++ b/legacy/evas/src/lib/canvas/evas_render.c @@ -1450,6 +1450,14 @@ evas_render_updates_internal(Evas *e, them from the pending list. */ 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 */ for (i = 0; i < e->delete_objects.count; ++i) { @@ -1465,14 +1473,6 @@ evas_render_updates_internal(Evas *e, e->output.changed = 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, * it's useless to keep the render object list around. */ if (clean_them) -- 2.7.4