raster pushed a commit to branch master.

commit 94299c8160cb07ee0e33a7e0fe5ac3ea0b4b584b
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Tue Apr 16 20:26:17 2013 +0900

    be more protective against obj refs on del in zoomap
---
 src/bin/e_zoomap.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/bin/e_zoomap.c b/src/bin/e_zoomap.c
index 00e6bbe..085eb74 100644
--- a/src/bin/e_zoomap.c
+++ b/src/bin/e_zoomap.c
@@ -234,12 +234,14 @@ _e_smart_del(Evas_Object *obj)
    INTERNAL_ENTRY;
    if (sd->child_obj)
      {
-        evas_object_event_callback_del(sd->child_obj, EVAS_CALLBACK_DEL,
+        Evas_Object *o = sd->child_obj;
+        
+        sd->child_obj = NULL;
+        evas_object_event_callback_del(o, EVAS_CALLBACK_DEL,
                                        _e_smart_child_del_hook);
-        evas_object_event_callback_del(sd->child_obj, EVAS_CALLBACK_RESIZE,
+        evas_object_event_callback_del(o, EVAS_CALLBACK_RESIZE,
                                        _e_smart_child_resize_hook);
-        evas_object_del(sd->child_obj);
-        sd->child_obj = NULL;
+        evas_object_del(o);
      }
    E_FREE(sd);
 }

-- 

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

Reply via email to