diff options
author | Ryuan Choi <ryuan.choi@gmail.com> | 2013-06-25 10:37:59 +0900 |
---|---|---|
committer | Cedric Bail <cedric.bail@samsung.com> | 2013-06-25 11:45:42 +0900 |
commit | c11e4cbca8eb097945f0b2973d17ac5c85b9789f (patch) | |
tree | 59e016d03e23fb5cfa44c885124dc34be829c5d7 /src | |
parent | 71122d59209135df81b2d07b7620557c1fbce031 (diff) | |
download | efl-c11e4cbca8eb097945f0b2973d17ac5c85b9789f.tar.gz |
edje: fix memory leak with EDJE_TWEEN_MODE_OPT_FROM_CURRENT.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/edje/edje_program.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/edje/edje_program.c b/src/lib/edje/edje_program.c index c1c6f3edbc..9fd3179162 100644 --- a/src/lib/edje/edje_program.c +++ b/src/lib/edje/edje_program.c @@ -443,6 +443,16 @@ _edje_program_end(Edje *ed, Edje_Running_Program *runp) runp->program->tween.mode, ZERO, runp->program->tween.v1, runp->program->tween.v2); + + if (rp->current) + { + eina_cow_free(_edje_calc_params_map_cow, rp->current->map); +#ifdef HAVE_EPHYSICS + eina_cow_free(_edje_calc_params_physics_cow, rp->current->physics); +#endif + free(rp->current); + rp->current = NULL; + } rp->program = NULL; } } |