e_hwc_windows: Indicates pointer of Eina_List, not using eina_list_clone()
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 24 Dec 2018 02:41:21 +0000 (11:41 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 12 Apr 2019 10:00:22 +0000 (19:00 +0900)
this fixes memory leak.

Change-Id: Iacc8c5373edb525c1b36a30c9849ac1bd0385152

src/bin/e_hwc_windows.c

index 21507952bb2dca5b30fbb02fcd79a397bec9adc6..cc05ec3e06a69318e561aca99f4db5f0d48e9fb6 100644 (file)
@@ -1671,7 +1671,7 @@ _e_hwc_windows_visible_windows_update(E_Hwc *hwc)
     }
 
    /* store the current visible windows and the number of them */
-   hwc->visible_windows = eina_list_clone(visible_windows);
+   hwc->visible_windows = visible_windows;
    hwc->num_visible_windows = visible_num;
 
    /* use the reverse iteration for assgining the zpos */