User could use ecore_wl2_subsurface API as below.
if (!ecore_wl2_subsurface_video_surface_prepare)
ecore_wl2_subsurface_del;
If video_surface_prepare frees subsurface when it gets a failure,
then del also tries to free the subsurface again. (double free)
It does not make sense to release subsurface in video_surface_prepare.
So this patch is removing the line to free subsurface.
*tizen_fix
Change-Id: I5da0c10f59ebae5d7b4406f8ad93dacb082bb285
subsurface->wl.tbm_surface = NULL;
client_init_err:
- _ecore_wl2_subsurf_free(subsurface);
+ subsurface->video = EINA_FALSE;
return EINA_FALSE;
}