seoz pushed a commit to branch master.

commit 539f56a3f07d927ea7cf5197ac179e75c318b8e0
Author: Daniel Juyung Seo <[email protected]>
Date:   Wed May 29 20:40:06 2013 +0900

    elm_box.c: ELM_SAFE_FREE adoption for box.
    
    I splited ELM_SAFE_FREE refactoring patches. One commit per each file as 
recommended.
    For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
---
 src/lib/elm_box.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/elm_box.c b/src/lib/elm_box.c
index aaa689a..59def43 100644
--- a/src/lib/elm_box.c
+++ b/src/lib/elm_box.c
@@ -360,7 +360,7 @@ _transition_layout_animation_stop(Elm_Box_Transition 
*layout_data)
 {
    layout_data->animation_ended = EINA_TRUE;
 
-   ELM_FREE_FUNC(layout_data->animator, ecore_animator_del);
+   ELM_SAFE_FREE(layout_data->animator, ecore_animator_del);
 
    if (layout_data->transition_end_cb)
      layout_data->transition_end_cb(layout_data->transition_end_data);
@@ -787,7 +787,7 @@ elm_box_transition_free(void *data)
      (box_data->box, SIG_CHILD_ADDED, _transition_layout_child_added);
    evas_object_smart_callback_del
      (box_data->box, SIG_CHILD_REMOVED, _transition_layout_child_removed);
-   ELM_FREE_FUNC(box_data->animator, ecore_animator_del);
+   if (box_data->animator) ecore_animator_del(box_data->animator);
 
    free(data);
 }

-- 

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1

Reply via email to