From: ayush.sriv Date: Sun, 5 Mar 2017 11:32:01 +0000 (+0530) Subject: [Ecore] Memory leak fixed in Ecore Wayland X-Git-Tag: accepted/tizen/common/20170309.175613~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08c45aa4a87fba4c1b32ecc14a09acdf2dcaa280;p=platform%2Fupstream%2Fefl.git [Ecore] Memory leak fixed in Ecore Wayland Change-Id: I51fb6d380add79e55cb5acaf7f3b750c72a96d43 Signed-off-by: ayush.sriv --- 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); }