summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyuan Choi <ryuan.choi@gmail.com>2013-06-25 10:37:59 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-06-25 11:45:42 +0900
commitc11e4cbca8eb097945f0b2973d17ac5c85b9789f (patch)
tree59e016d03e23fb5cfa44c885124dc34be829c5d7
parent71122d59209135df81b2d07b7620557c1fbce031 (diff)
edje: fix memory leak with EDJE_TWEEN_MODE_OPT_FROM_CURRENT.
-rw-r--r--src/lib/edje/edje_program.c10
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)
443 runp->program->tween.mode, ZERO, 443 runp->program->tween.mode, ZERO,
444 runp->program->tween.v1, 444 runp->program->tween.v1,
445 runp->program->tween.v2); 445 runp->program->tween.v2);
446
447 if (rp->current)
448 {
449 eina_cow_free(_edje_calc_params_map_cow, rp->current->map);
450#ifdef HAVE_EPHYSICS
451 eina_cow_free(_edje_calc_params_physics_cow, rp->current->physics);
452#endif
453 free(rp->current);
454 rp->current = NULL;
455 }
446 rp->program = NULL; 456 rp->program = NULL;
447 } 457 }
448 } 458 }