e_xdg_shell_v6: Freed a memory 'E_Xdg_Surface_Configure' when cleanup the configure_list. 00/185600/2
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 30 Jul 2018 09:46:16 +0000 (18:46 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Mon, 6 Aug 2018 03:48:28 +0000 (03:48 +0000)
fix a memory leak

Change-Id: I7329678c86dbd864d8afae021d6dc4f99c8e3331

src/bin/e_xdg_shell_v6.c

index ca4993e..cfafba3 100644 (file)
@@ -1607,8 +1607,7 @@ _e_xdg_surface_destroy(E_Xdg_Surface *exsurf)
 
    _e_xdg_shell_surface_remove(exsurf->shell, exsurf);
 
-   if (exsurf->configure_list)
-     eina_list_free(exsurf->configure_list);
+   E_FREE_LIST(exsurf->configure_list, free);
    if (exsurf->configure_idle)
      ecore_idle_enterer_del(exsurf->configure_idle);
    if (exsurf->commit_handler)