From: Changyeon Lee Date: Thu, 17 Jan 2019 06:54:10 +0000 (+0900) Subject: e_hwc_windows: fix NULL pointer dereferences X-Git-Tag: submit/tizen/20190124.034806~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e20cc1077bf0224f468f98eac47dc0e5711b05d5;p=platform%2Fupstream%2Fenlightenment.git e_hwc_windows: fix NULL pointer dereferences Change-Id: I99c4ce3680b1154a54a2ce882f74e1fb7292d0ce --- diff --git a/src/bin/e_hwc_window_queue.c b/src/bin/e_hwc_window_queue.c index e6e9de700b..32d52d819d 100644 --- a/src/bin/e_hwc_window_queue.c +++ b/src/bin/e_hwc_window_queue.c @@ -592,6 +592,8 @@ _e_hwc_window_queue_destroy(E_Hwc_Window_Queue *queue) { E_Hwc_Window_Queue_Buffer *queue_buffer = NULL; + if (!queue) return; + if (_hwc_winq_mgr && queue->tqueue) eina_hash_del(_hwc_winq_mgr->hwc_winq_hash, &queue->tqueue, queue); diff --git a/src/bin/e_hwc_windows.c b/src/bin/e_hwc_windows.c index 2a7cba68b3..5a23bd49a1 100644 --- a/src/bin/e_hwc_windows.c +++ b/src/bin/e_hwc_windows.c @@ -1697,7 +1697,7 @@ _e_hwc_windows_visible_windows_states_update(E_Hwc *hwc) e_hwc_window_state_set(hwc_window, E_HWC_WINDOW_STATE_CLIENT, EINA_TRUE); EHWSTRACE(" ehw:%p -- {%25s} is NOT hwc_acceptable.", - hwc_window->ec, hwc_window, hwc_window->ec->icccm.title); + hwc_window->ec, hwc_window, e_hwc_window_name_get(hwc_window)); } } else