Since atspi_init do not count reference we must assure that
atspi_init and atspi_exit are called exeacly once.
Change-Id: Ib1f5cea5fbae3770e666c86c09863870a85935b1
void keyboard_tracker_init(void)
{
- atspi_init();
listener = atspi_device_listener_new(device_cb, NULL, NULL);
atspi_register_keystroke_listener(listener, NULL, 0, ATSPI_KEY_PRESSED, ATSPI_KEYLISTENER_SYNCHRONOUS | ATSPI_KEYLISTENER_CANCONSUME, NULL);
active_xwindow_property_tracker_register();
static int app_create(void *data)
{
elm_init(0, NULL);
+ atspi_init();
logger_init();
screen_reader_create_service(data);
DEBUG("terminate logger");
logger_shutdown();
DEBUG("screen reader terminated");
+
+ DEBUG("libatspi terminated");
+ atspi_exit();
+
return 0;
}