From 803b582904431c8073ed23a08298de576118a7cd Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 19 Feb 2013 09:48:10 +0000 Subject: [PATCH] remove comp wins from hash immediately when deleted to prevent access later SVN revision: 84095 --- src/bin/e_comp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c index d570f7b00..dbfebfc29 100644 --- a/src/bin/e_comp.c +++ b/src/bin/e_comp.c @@ -2233,6 +2233,10 @@ _e_comp_win_del(E_Comp_Win *cw) _e_comp_win_release(cw); + if (cw->inhash) + eina_hash_del(windows, e_util_winid_str_get(cw->win), cw); + cw->inhash = 0; + if (!cw->delete_pending) { cw->c->wins_invalid = 1; @@ -2274,9 +2278,6 @@ _e_comp_win_del(E_Comp_Win *cw) if (cw->free_shape) E_FN_DEL(e_object_del, cw->shape); - if (cw->inhash) - eina_hash_del(windows, e_util_winid_str_get(cw->win), cw); - free(cw->title); free(cw->name); free(cw->clas);