Change-Id: Ie40676f0c913994c0e78fc2c6af33a1eea234176
return NULL;
target_hwc_window = E_OBJECT_ALLOC(E_Hwc_Window_Target, E_HWC_WINDOW_TYPE, _e_hwc_windows_target_window_free);
- EINA_SAFETY_ON_NULL_GOTO(target_hwc_window, fail);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(target_hwc_window, NULL);
hwc_window = (E_Hwc_Window *)target_hwc_window;
hwc->hwc_windows = eina_list_append(hwc->hwc_windows, target_hwc_window);
return target_hwc_window;
-
-fail:
- if (target_hwc_window)
- e_object_del(E_OBJECT(target_hwc_window));
-
- return NULL;
}
EINTERN void