From: SooChan Lim Date: Wed, 6 Sep 2017 06:49:57 +0000 (+0900) Subject: e_plane: remove the available_formats list items X-Git-Tag: accepted/tizen/4.0/unified/20170913.003139~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17cf075e121e0bd1d1c0ac8cdda67d5fef727a1d;p=platform%2Fupstream%2Fenlightenment.git e_plane: remove the available_formats list items Change-Id: I1528d5f6a31ec3ebbf1f8b0cd2a3f193034084af --- diff --git a/src/bin/e_plane.c b/src/bin/e_plane.c index 20c23f6..db01a98 100755 --- a/src/bin/e_plane.c +++ b/src/bin/e_plane.c @@ -1187,8 +1187,14 @@ e_plane_new(E_Output *output, int index) EINTERN void e_plane_free(E_Plane *plane) { + Eina_List *l = NULL, *ll = NULL; + const tbm_format *formats; + if (!plane) return; + EINA_LIST_FOREACH_SAFE(plane->available_formats, l, ll, formats) + plane->available_formats = eina_list_remove_list(plane->available_formats, l); + if (plane->name) eina_stringshare_del(plane->name); if (plane->renderer) _e_plane_renderer_unset(plane); if (plane->ec) e_plane_ec_set(plane, NULL);