remove comp wins from hash immediately when deleted to prevent access later

SVN revision: 84095
This commit is contained in:
Mike Blumenkrantz 2013-02-19 09:48:10 +00:00
parent 2b0dd27f28
commit 803b582904
1 changed files with 4 additions and 3 deletions

View File

@ -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);