Change-Id: I6c927d0c2b791c118093db98e695990a6c3d6057
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
{
set_last_result(EFL_UTIL_ERROR_INVALID_PARAMETER);
_screenshot_mutex_unlock();
+ if (screenshot)
+ free(screenshot);
return NULL;
}
wl_display_roundtrip_queue(_eflutil.wl.dpy, _eflutil.wl.queue);
if (display_wrapper)
wl_proxy_wrapper_destroy(display_wrapper);
set_last_result(EFL_UTIL_ERROR_OUT_OF_MEMORY);
+ if (screenshot)
+ free(screenshot);
_screenshot_mutex_unlock();
return NULL;