Change-Id: I0579184c8ebb4215ad27fc6f43f64bd46bbff494
if (!surf->surface_data) {
TBM_ERR("tbm_module_alloc_surface_data failed. width:%d height:%d format:%d error:%s",
width, height, format, tbm_error_str(*error));
+ _tbm_surface_internal_free(surf);
return NULL;
}
}
/* LCOV_EXCL_START */
TBM_ERR("tbm_module_import_surface_data failed. width:%d height:%d format:%d error:%s",
width, height, format, tbm_error_str(*error));
+ _tbm_surface_internal_free(surf);
return NULL;
/* LCOV_EXCL_STOP */
}