edje: protect for people who don't have Ephysics.
authorCedric BAIL <cedric.bail@samsung.com>
Wed, 13 Mar 2013 08:38:57 +0000 (17:38 +0900)
committerCedric BAIL <cedric.bail@samsung.com>
Wed, 13 Mar 2013 08:38:57 +0000 (17:38 +0900)
src/lib/edje/edje_calc.c

index cdba556..13a8f24 100644 (file)
@@ -3656,9 +3656,11 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
    if (pf == &lp3)
      {
         eina_cow_free(_edje_calc_params_map_cow, lp3.map);
-        eina_cow_free(_edje_calc_params_physics_cow, lp3.physics);
         lp3.map = NULL;
+#ifdef HAVE_EPHYSICS
+        eina_cow_free(_edje_calc_params_physics_cow, lp3.physics);
         lp3.physics = NULL;
+#endif
      }
 
 #ifdef EDJE_CALC_CACHE
@@ -3669,6 +3671,8 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
      }
 #else
    eina_cow_free(_edje_calc_params_map_cow, lp1.map);
+#ifdef HAVE_EPHYSICS
    eina_cow_free(_edje_calc_params_physics_cow, lp1.physics);
 #endif
+#endif
 }