From 08c45aa4a87fba4c1b32ecc14a09acdf2dcaa280 Mon Sep 17 00:00:00 2001 From: "ayush.sriv" Date: Sun, 5 Mar 2017 17:02:01 +0530 Subject: [PATCH] [Ecore] Memory leak fixed in Ecore Wayland Change-Id: I51fb6d380add79e55cb5acaf7f3b750c72a96d43 Signed-off-by: ayush.sriv --- src/lib/ecore_wayland/ecore_wl_dnd.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/ecore_wayland/ecore_wl_dnd.c b/src/lib/ecore_wayland/ecore_wl_dnd.c index 7c2eb5b..39f59f3 100644 --- a/src/lib/ecore_wayland/ecore_wl_dnd.c +++ b/src/lib/ecore_wayland/ecore_wl_dnd.c @@ -627,6 +627,14 @@ _ecore_wl_dnd_del(Ecore_Wl_Dnd_Source *source) if (source->refcount == 0) { wl_data_offer_destroy(source->data_offer); + // TIZEN_ONLY(20170306): Free the heap allocated content of wl_array + if (source->types.data) + { + char **t; + wl_array_for_each(t, &source->types) + free(*t); + } + // wl_array_release(&source->types); free(source); } -- 2.7.4