summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-02-19 09:48:10 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-02-19 09:48:10 +0000
commit803b582904431c8073ed23a08298de576118a7cd (patch)
treeaa70d379ef89df65860d97a71959f70f3d2baa7d
parent2b0dd27f285cccbd317634940d13b99688901e38 (diff)
remove comp wins from hash immediately when deleted to prevent access later
SVN revision: 84095
Diffstat (limited to '')
-rw-r--r--src/bin/e_comp.c7
1 files 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)
2233 2233
2234 _e_comp_win_release(cw); 2234 _e_comp_win_release(cw);
2235 2235
2236 if (cw->inhash)
2237 eina_hash_del(windows, e_util_winid_str_get(cw->win), cw);
2238 cw->inhash = 0;
2239
2236 if (!cw->delete_pending) 2240 if (!cw->delete_pending)
2237 { 2241 {
2238 cw->c->wins_invalid = 1; 2242 cw->c->wins_invalid = 1;
@@ -2274,9 +2278,6 @@ _e_comp_win_del(E_Comp_Win *cw)
2274 2278
2275 if (cw->free_shape) E_FN_DEL(e_object_del, cw->shape); 2279 if (cw->free_shape) E_FN_DEL(e_object_del, cw->shape);
2276 2280
2277 if (cw->inhash)
2278 eina_hash_del(windows, e_util_winid_str_get(cw->win), cw);
2279
2280 free(cw->title); 2281 free(cw->title);
2281 free(cw->name); 2282 free(cw->name);
2282 free(cw->clas); 2283 free(cw->clas);