forked from enlightenment/efl
ecore-wl2: Fix efl apps crashing on close in wayland
Commit c6b59be1da
ensured display cleanup after roundtrips, however we
cannot call the display_cleanup function After the display has been
disconnected ... oopsie. Essentially the call to the cleanup function
was in the wrong place here so fix.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
81783ec75c
commit
5ec4715b9d
|
@ -811,13 +811,14 @@ ecore_wl2_display_disconnect(Ecore_Wl2_Display *display)
|
||||||
if (display->refs == 0)
|
if (display->refs == 0)
|
||||||
{
|
{
|
||||||
wl_display_roundtrip(display->wl.display);
|
wl_display_roundtrip(display->wl.display);
|
||||||
|
|
||||||
|
_ecore_wl2_display_cleanup(display);
|
||||||
|
|
||||||
wl_display_disconnect(display->wl.display);
|
wl_display_disconnect(display->wl.display);
|
||||||
|
|
||||||
/* remove this client display from hash */
|
/* remove this client display from hash */
|
||||||
eina_hash_del_by_key(_client_displays, display->name);
|
eina_hash_del_by_key(_client_displays, display->name);
|
||||||
|
|
||||||
_ecore_wl2_display_cleanup(display);
|
|
||||||
|
|
||||||
free(display->name);
|
free(display->name);
|
||||||
free(display);
|
free(display);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue