In certain use case, the tbm_client has been deinited when _evas_outbuf_redraws_clear called.
It cause crash.
Change-Id: Ibdc75b3cf66a541e5ac5568e604c54a137f2eb8d
if (einfo && einfo->info.tbm_client)
{
if (_ecore_evas_wl_init_count == 1)
- wayland_tbm_client_deinit(einfo->info.tbm_client);
+ {
+ wayland_tbm_client_deinit(einfo->info.tbm_client);
+ einfo->info.tbm_client = NULL;
+ }
}
}
}
wls = ecore_wl2_window_surface_get(ob->info->info.wl2_win);
if (wls)
{
- ecore_wl2_surface_set_serial(ob->surface, ob->info->info.serial);
+ if (ob->info->info.tbm_client)
+ ecore_wl2_surface_set_serial(ob->surface, ob->info->info.serial);
ecore_wl2_surface_post(ob->surface, ob->priv.rects, ob->priv.rect_count);
}