forked from enlightenment/efl
ecore_wl2: Destroy offscreen event handler in surface destroy
Or we can get the event after destroying the surface and crash.
This commit is contained in:
parent
9a4b8f3800
commit
a221bec6d0
|
@ -15,6 +15,7 @@ ecore_wl2_surface_destroy(Ecore_Wl2_Surface *surface)
|
|||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN(surface);
|
||||
|
||||
ecore_event_handler_del(surface->offscreen_handler);
|
||||
surface->funcs->destroy(surface, surface->private_data);
|
||||
surface->wl2_win = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue