if (__watcher_tbl)
g_hash_table_destroy(__watcher_tbl);
+ __watcher_tbl = NULL;
return screen_connector_watcher_fini();
}
return;
}
- g_hash_table_remove(__watcher_tbl, watcher_evas_h->img_tbm);
+ if (__watcher_tbl != NULL && watcher_evas_h->img_tbm != NULL) {
+ g_hash_table_remove(__watcher_tbl, watcher_evas_h->img_tbm);
- /* Remove data used in accessibility */
- plug_id = evas_object_data_del(watcher_evas_h->img_tbm, "___PLUGID");
- free(plug_id);
+ /* Remove data used in accessibility */
+ plug_id = evas_object_data_del(watcher_evas_h->img_tbm, "___PLUGID");
+ free(plug_id);
+ }
appid = screen_connector_watcher_get_appid(watcher_evas_h->watcher_h);
watcher_evas_h->ops->removed(appid, watcher_evas_h->img_tbm, watcher_evas_h->data);