e_hwc_windows: fix NULL pointer dereferences 19/197919/2
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 17 Jan 2019 06:54:10 +0000 (15:54 +0900)
committerchangyeon lee <cyeon.lee@samsung.com>
Thu, 17 Jan 2019 07:16:18 +0000 (07:16 +0000)
Change-Id: I99c4ce3680b1154a54a2ce882f74e1fb7292d0ce

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

index e6e9de700b6ab865c310f03b48d18518bd144141..32d52d819d4316d56558773691b8200a47ca44eb 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 2a7cba68b38c509b80b4baec202d44e5694327d6..5a23bd49a12203dbce311c1f7acf0a01fe6748af 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