E_Hwc_Window can be freed when it is removed from
the pending_presentation_cb_wins list.
Change-Id: I80645061ce12035bebde68509d9774834e799ffc
target_hwc_window = hwc->target_hwc_window;
EINA_SAFETY_ON_NULL_RETURN_VAL(target_hwc_window, EINA_FALSE);
+ e_hwc_presentation_callback_list_merge(dst_list,
+ &hwc_window->pending_presentation_callbacks);
+
if (eina_list_data_find(target_hwc_window->pending_presentation_cb_wins, hwc_window))
{
target_hwc_window->pending_presentation_cb_wins =
e_hwc_window_unref(hwc_window);
}
- e_hwc_presentation_callback_list_merge(dst_list,
- &hwc_window->pending_presentation_callbacks);
-
return EINA_TRUE;
}