elm: Delete atspi root object on shutdown
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 26 Sep 2017 08:14:19 +0000 (17:14 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 26 Sep 2017 08:58:07 +0000 (17:58 +0900)
Ugly implementation but this will do.

@fix

src/lib/elementary/elm_atspi_bridge.c
src/lib/elementary/elm_interface_atspi_accessible.c
src/lib/elementary/elm_priv.h

index 8ff4f12..09247fd 100644 (file)
@@ -4486,6 +4486,7 @@ _elm_atspi_bridge_shutdown(void)
         efl_del(_instance);
         _init_count = 0;
      }
+   _elm_interface_atspi_shutdown();
 }
 
 static Key_Event_Info*
index 09ddea8..a98f69b 100644 (file)
@@ -609,4 +609,10 @@ _elm_interface_atspi_accessible_efl_object_destructor(Eo *obj, Elm_Interface_Ats
    efl_destructor(efl_super(obj, ELM_INTERFACE_ATSPI_ACCESSIBLE_MIXIN));
 }
 
+void
+_elm_interface_atspi_shutdown(void)
+{
+   ELM_SAFE_DEL(root);
+}
+
 #include "elm_interface_atspi_accessible.eo.c"
index 6291b55..8d905ca 100644 (file)
@@ -547,6 +547,8 @@ void                 _elm_win_wl_cursor_set(Evas_Object *obj, const char *cursor
 void _efl_ui_focus_manager_redirect_events_del(Efl_Ui_Focus_Manager *manager, Eo *obj);
 void _efl_ui_focus_manager_redirect_events_add(Efl_Ui_Focus_Manager *manager, Eo *obj);
 
+void _elm_interface_atspi_shutdown(void);
+
 /* Combobox: no proper support for Efl.Part API yet. */
 void        _elm_combobox_part_text_set(Eo *obj, const char * part, const char *label);
 const char *_elm_combobox_part_text_get(const Eo *obj, const char *part);