forked from enlightenment/efl
ecore-wl2: fix use after free and leak when deleting display object
ref T2919
This commit is contained in:
parent
8fb4840479
commit
d2a7882b73
|
@ -359,10 +359,11 @@ _ecore_wl2_display_cleanup(Ecore_Wl2_Display *ewd)
|
|||
|
||||
wl_display_flush(ewd->wl.display);
|
||||
|
||||
if (ewd->name) free(ewd->name);
|
||||
|
||||
/* remove this client display from hash */
|
||||
if (_client_displays) eina_hash_del(_client_displays, ewd->name, ewd);
|
||||
eina_hash_del_by_key(_client_displays, ewd->name);
|
||||
|
||||
free(ewd->name);
|
||||
free(ewd);
|
||||
}
|
||||
|
||||
Ecore_Wl2_Window *
|
||||
|
|
Loading…
Reference in New Issue