summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-11-04 12:47:34 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-11-04 12:47:34 +0900
commit7e3286b4edbaba81fda348a08fe0e33938fce3e3 (patch)
tree8d9783eb1b25b645ca658b557632149aa05c02cb /src/lib
parentbe3afd8f4b778e0b0be9be43265674fe9a1ba847 (diff)
edje: update use of eina_cow_free to latest change.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/edje/edje_calc.c16
-rw-r--r--src/lib/edje/edje_load.c12
-rw-r--r--src/lib/edje/edje_program.c12
3 files changed, 20 insertions, 20 deletions
diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c
index 71eb95dfae..4f02f78c3f 100644
--- a/src/lib/edje/edje_calc.c
+++ b/src/lib/edje/edje_calc.c
@@ -574,9 +574,9 @@ _edje_part_description_apply(Edje *ed, Edje_Real_Part *ep, const char *d1, doubl
574 if (ep->param2) 574 if (ep->param2)
575 { 575 {
576 free(ep->param2->set); 576 free(ep->param2->set);
577 eina_cow_free(_edje_calc_params_map_cow, ep->param2->p.map); 577 eina_cow_free(_edje_calc_params_map_cow, (const Eina_Cow_Data **) &ep->param2->p.map);
578#ifdef HAVE_EPHYSICS 578#ifdef HAVE_EPHYSICS
579 eina_cow_free(_edje_calc_params_physics_cow, ep->param2->p.physics); 579 eina_cow_free(_edje_calc_params_physics_cow, (const Eina_Cow_Data **) &ep->param2->p.physics);
580#endif 580#endif
581 } 581 }
582 eina_mempool_free(_edje_real_part_state_mp, ep->param2); 582 eina_mempool_free(_edje_real_part_state_mp, ep->param2);
@@ -3643,9 +3643,9 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
3643 } 3643 }
3644 3644
3645#ifndef EDJE_CALC_CACHE 3645#ifndef EDJE_CALC_CACHE
3646 eina_cow_free(_edje_calc_params_map_cow, lp2.map); 3646 eina_cow_free(_edje_calc_params_map_cow, (const Eina_Cow_Data **) &lp2.map);
3647#ifdef HAVE_EPHYSICS 3647#ifdef HAVE_EPHYSICS
3648 eina_cow_free(_edje_calc_params_physics_cow, lp2.physics); 3648 eina_cow_free(_edje_calc_params_physics_cow, (const Eina_Cow_Data **) &lp2.physics);
3649#endif 3649#endif
3650#endif 3650#endif
3651 pf = p3; 3651 pf = p3;
@@ -3963,10 +3963,10 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
3963 3963
3964 if (pf == &lp3) 3964 if (pf == &lp3)
3965 { 3965 {
3966 eina_cow_free(_edje_calc_params_map_cow, lp3.map); 3966 eina_cow_free(_edje_calc_params_map_cow, (const Eina_Cow_Data **) &lp3.map);
3967 lp3.map = NULL; 3967 lp3.map = NULL;
3968#ifdef HAVE_EPHYSICS 3968#ifdef HAVE_EPHYSICS
3969 eina_cow_free(_edje_calc_params_physics_cow, lp3.physics); 3969 eina_cow_free(_edje_calc_params_physics_cow, (const Eina_Cow_Data **) &lp3.physics);
3970 lp3.physics = NULL; 3970 lp3.physics = NULL;
3971#endif 3971#endif
3972 } 3972 }
@@ -3978,9 +3978,9 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
3978 ep->invalidate = 0; 3978 ep->invalidate = 0;
3979 } 3979 }
3980#else 3980#else
3981 eina_cow_free(_edje_calc_params_map_cow, lp1.map); 3981 eina_cow_free(_edje_calc_params_map_cow, (const Eina_Cow_Data **) &lp1.map);
3982#ifdef HAVE_EPHYSICS 3982#ifdef HAVE_EPHYSICS
3983 eina_cow_free(_edje_calc_params_physics_cow, lp1.physics); 3983 eina_cow_free(_edje_calc_params_physics_cow, (const Eina_Cow_Data **) &lp1.physics);
3984#endif 3984#endif
3985#endif 3985#endif
3986} 3986}
diff --git a/src/lib/edje/edje_load.c b/src/lib/edje/edje_load.c
index 546f78e5a5..f50351eb47 100644
--- a/src/lib/edje/edje_load.c
+++ b/src/lib/edje/edje_load.c
@@ -1408,9 +1408,9 @@ _edje_file_del(Edje *ed)
1408 if (rp->param2) 1408 if (rp->param2)
1409 { 1409 {
1410 free(rp->param2->set); 1410 free(rp->param2->set);
1411 eina_cow_free(_edje_calc_params_map_cow, rp->param2->p.map); 1411 eina_cow_free(_edje_calc_params_map_cow, (const Eina_Cow_Data **) &rp->param2->p.map);
1412#ifdef HAVE_EPHYSICS 1412#ifdef HAVE_EPHYSICS
1413 eina_cow_free(_edje_calc_params_physics_cow, rp->param2->p.physics); 1413 eina_cow_free(_edje_calc_params_physics_cow, (const Eina_Cow_Data **) &rp->param2->p.physics);
1414#endif 1414#endif
1415 } 1415 }
1416 eina_mempool_free(_edje_real_part_state_mp, rp->param2); 1416 eina_mempool_free(_edje_real_part_state_mp, rp->param2);
@@ -1418,17 +1418,17 @@ _edje_file_del(Edje *ed)
1418 if (rp->custom) 1418 if (rp->custom)
1419 { 1419 {
1420 free(rp->custom->set); 1420 free(rp->custom->set);
1421 eina_cow_free(_edje_calc_params_map_cow, rp->custom->p.map); 1421 eina_cow_free(_edje_calc_params_map_cow, (const Eina_Cow_Data **) &rp->custom->p.map);
1422#ifdef HAVE_EPHYSICS 1422#ifdef HAVE_EPHYSICS
1423 eina_cow_free(_edje_calc_params_physics_cow, rp->custom->p.physics); 1423 eina_cow_free(_edje_calc_params_physics_cow, (const Eina_Cow_Data **) &rp->custom->p.physics);
1424#endif 1424#endif
1425 } 1425 }
1426 eina_mempool_free(_edje_real_part_state_mp, rp->custom); 1426 eina_mempool_free(_edje_real_part_state_mp, rp->custom);
1427 1427
1428 _edje_unref(ed); 1428 _edje_unref(ed);
1429 eina_cow_free(_edje_calc_params_map_cow, rp->param1.p.map); 1429 eina_cow_free(_edje_calc_params_map_cow, (const Eina_Cow_Data **) &rp->param1.p.map);
1430#ifdef HAVE_EPHYSICS 1430#ifdef HAVE_EPHYSICS
1431 eina_cow_free(_edje_calc_params_physics_cow, rp->param1.p.physics); 1431 eina_cow_free(_edje_calc_params_physics_cow, (const Eina_Cow_Data **) &rp->param1.p.physics);
1432#endif 1432#endif
1433 eina_mempool_free(_edje_real_part_mp, rp); 1433 eina_mempool_free(_edje_real_part_mp, rp);
1434 } 1434 }
diff --git a/src/lib/edje/edje_program.c b/src/lib/edje/edje_program.c
index 52335b9135..69acfbab30 100644
--- a/src/lib/edje/edje_program.c
+++ b/src/lib/edje/edje_program.c
@@ -446,9 +446,9 @@ _edje_program_end(Edje *ed, Edje_Running_Program *runp)
446 446
447 if (rp->current) 447 if (rp->current)
448 { 448 {
449 eina_cow_free(_edje_calc_params_map_cow, rp->current->map); 449 eina_cow_free(_edje_calc_params_map_cow, (const Eina_Cow_Data **) &rp->current->map);
450#ifdef HAVE_EPHYSICS 450#ifdef HAVE_EPHYSICS
451 eina_cow_free(_edje_calc_params_physics_cow, rp->current->physics); 451 eina_cow_free(_edje_calc_params_physics_cow, (const Eina_Cow_Data **) &rp->current->physics);
452#endif 452#endif
453 free(rp->current); 453 free(rp->current);
454 rp->current = NULL; 454 rp->current = NULL;
@@ -573,9 +573,9 @@ _edje_program_run(Edje *ed, Edje_Program *pr, Eina_Bool force, const char *ssig,
573 573
574 if (rp->current) 574 if (rp->current)
575 { 575 {
576 eina_cow_free(_edje_calc_params_map_cow, rp->current->map); 576 eina_cow_free(_edje_calc_params_map_cow, (const Eina_Cow_Data **) &rp->current->map);
577#ifdef HAVE_EPHYSICS 577#ifdef HAVE_EPHYSICS
578 eina_cow_free(_edje_calc_params_physics_cow, rp->current->physics); 578 eina_cow_free(_edje_calc_params_physics_cow, (const Eina_Cow_Data **) &rp->current->physics);
579#endif 579#endif
580 free(rp->current); 580 free(rp->current);
581 } 581 }
@@ -587,9 +587,9 @@ _edje_program_run(Edje *ed, Edje_Program *pr, Eina_Bool force, const char *ssig,
587low_mem_current: 587low_mem_current:
588 if (rp->current) 588 if (rp->current)
589 { 589 {
590 eina_cow_free(_edje_calc_params_map_cow, rp->current->map); 590 eina_cow_free(_edje_calc_params_map_cow, (const Eina_Cow_Data **) &rp->current->map);
591#ifdef HAVE_EPHYSICS 591#ifdef HAVE_EPHYSICS
592 eina_cow_free(_edje_calc_params_physics_cow, rp->current->physics); 592 eina_cow_free(_edje_calc_params_physics_cow, (const Eina_Cow_Data **) &rp->current->physics);
593#endif 593#endif
594 free(rp->current); 594 free(rp->current);
595 } 595 }