_eflutil.wl.shot.tbm_client = wayland_tbm_client_init(_eflutil.wl.dpy);
EINA_SAFETY_ON_NULL_GOTO(_eflutil.wl.shot.tbm_client, fail_init);
+
+ wl_registry_destroy(reg);
+ reg = NULL;
}
if (_eflutil.wl.shot.noti == 0)
set_last_result(EFL_UTIL_ERROR_OUT_OF_MEMORY);
return NULL;
fail_init:
+ if (reg)
+ wl_registry_destroy(reg);
if (screenshot)
efl_util_screenshot_deinitialize(screenshot);
_screenshot_mutex_unlock();
free(screenshot);
g_screenshot = NULL;
- if (_eflutil.wl.shot.queue)
- {
- wl_event_queue_destroy(_eflutil.wl.shot.queue);
- _eflutil.wl.shot.queue = NULL;
- }
-
if (_eflutil.wl.shot.screenshooter)
{
screenshooter_destroy(_eflutil.wl.shot.screenshooter);
_eflutil.wl.shot.tz_screenshooter = NULL;
}
+ if (_eflutil.wl.shot.queue)
+ {
+ wl_event_queue_destroy(_eflutil.wl.shot.queue);
+ _eflutil.wl.shot.queue = NULL;
+ }
+
_screenshot_mutex_unlock();
_screenshot_mutex_destory();