e_hwc_windows: fix NULL pointer dereferences
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 17 Jan 2019 06:54:10 +0000 (15:54 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 12 Apr 2019 10:00:22 +0000 (19:00 +0900)
Change-Id: I99c4ce3680b1154a54a2ce882f74e1fb7292d0ce

src/bin/e_hwc_window_queue.c
src/bin/e_hwc_windows.c

index b470c6112639e595cb245adc91ea435f14725d90..45042bee0ff284055707418d0bd4c6f3a487cc23 100644 (file)
@@ -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);
 
index ff4b6d7771f77dd6e8c1cd74216c25399ed6af9e..075a069dca22f08e40b50c294e2e528512b3bdd2 100644 (file)
@@ -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