From: Changyeon Lee Date: Tue, 11 Jan 2022 06:49:40 +0000 (+0900) Subject: e_hwc_windows: add null check of target window X-Git-Tag: accepted/tizen/unified/20220114.130129~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=532cc37aab5a7c4e1fe06e93f3d2b80a763bacbd;p=platform%2Fupstream%2Fenlightenment.git e_hwc_windows: add null check of target window Change-Id: I99f536003d7297f11fe6577adbc259b60c77d5dc --- diff --git a/src/bin/e_hwc_windows.c b/src/bin/e_hwc_windows.c index a685920..b096db7 100644 --- a/src/bin/e_hwc_windows.c +++ b/src/bin/e_hwc_windows.c @@ -3691,7 +3691,9 @@ e_hwc_windows_target_window_new(E_Hwc *hwc) else { target_hwc_window = _e_hwc_windows_target_window_new_with_no_ee(hwc); + EINA_SAFETY_ON_NULL_RETURN_VAL(target_hwc_window, NULL); } + target_hwc_window->hwc = hwc; hwc->hwc_windows = eina_list_append(hwc->hwc_windows, target_hwc_window);