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:
Derek Foreman 2018-02-09 09:49:52 -06:00
parent 9a4b8f3800
commit a221bec6d0
1 changed files with 1 additions and 0 deletions

View File

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