jaehwan pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=9f3323cc654d906e2ba79bee6ea8889a65492802

commit 9f3323cc654d906e2ba79bee6ea8889a65492802
Author: Jaehwan Kim <jae.hwan....@samsung.com>
Date:   Tue Jul 7 16:32:46 2015 +0900

    elm_conform: remove smart_callback when it is removed.
    
    The owner of the smart_callbacks is window. so even if the conformant
    is deleted, they aren't removed. It can make some problems.
    
    @fix
---
 src/lib/elm_conform.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/lib/elm_conform.c b/src/lib/elm_conform.c
index dcb617b..b18642b 100644
--- a/src/lib/elm_conform.c
+++ b/src/lib/elm_conform.c
@@ -905,6 +905,11 @@ _elm_conformant_evas_object_smart_del(Eo *obj, 
Elm_Conformant_Data *sd)
 
    evas_object_data_set(sd->win, "\377 elm,conformant", NULL);
 
+   evas_object_smart_callback_del_full
+     (sd->win, "indicator,prop,changed", _on_indicator_mode_changed, obj);
+   evas_object_smart_callback_del_full
+     (sd->win, "rotation,changed", _on_rotation_changed, obj);
+
    eo_do_super(obj, MY_CLASS, evas_obj_smart_del());
 }
 

-- 


Reply via email to