From: Krisztian Litkey Date: Tue, 28 Oct 2014 08:25:31 +0000 (+0200) Subject: system-controller: don't leak animation definition names. X-Git-Tag: accepted/tizen/ivi/20150112.012920~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49359b238128a76aa712c5b5d985e678c8811a6c;p=profile%2Fivi%2Fmurphy.git system-controller: don't leak animation definition names. Change-Id: I68565fa3aab73643c501596c8812d68cf88a3c57 --- diff --git a/src/plugins/system-controller/wayland/scripting-animation.c b/src/plugins/system-controller/wayland/scripting-animation.c index db7b512..5850290 100644 --- a/src/plugins/system-controller/wayland/scripting-animation.c +++ b/src/plugins/system-controller/wayland/scripting-animation.c @@ -156,7 +156,7 @@ static int animation_create(lua_State *L) if (hide) { mrp_wayland_animation_set(anims, MRP_WAYLAND_ANIMATION_HIDE, hide->name, hide->time); - mrp_free(hide); + animation_def_free(hide); } if (show) { mrp_wayland_animation_set(anims, MRP_WAYLAND_ANIMATION_SHOW, @@ -248,7 +248,7 @@ static int animation_setfield(lua_State *L) mrp_wayland_animation_set(anims, type, def->name, def->time); break; } - mrp_free(def); + animation_def_free(def); } MRP_LUA_LEAVE(0);