e_hwc_window_queue: set NULL after un-referencing the object 52/192252/2
authorSooChan Lim <sc1.lim@samsung.com>
Thu, 1 Nov 2018 12:03:59 +0000 (21:03 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 2 Nov 2018 09:58:47 +0000 (09:58 +0000)
Change-Id: I73e0461bc4676871b9ac1efbaadb0f8c9ed2f3b7

src/bin/e_hwc_window_queue.c

index 5dc358e523e041930aa4b9d25f266fbc209351d1..faca860688971d1e3356430e15f514f5cb7945fa 100644 (file)
@@ -425,8 +425,8 @@ _e_hwc_window_queue_pending_unset(E_Hwc_Window_Queue *queue)
      {
         queue->pending_unset_user = queue->user;
         e_object_ref(E_OBJECT(queue->pending_unset_user));
-        queue->user = NULL;
         e_object_unref(E_OBJECT(queue->user));
+        queue->user = NULL;
      }
 
    return EINA_TRUE;