In some scenarios it's possible to call _bridge_object_unregister
function, when bridge object was not constructed, which resulted in
call eina_error_set and possibly crash. This patch adds an if check
for existence of bridge object.
Change-Id: Ic1995f1c0728c08c0cc007f5476d7a68a8a1d5ed
{
ELM_ATSPI_BRIDGE_DATA_GET_OR_RETURN(bridge, pd);
- eina_hash_del(pd->cache, &obj, obj);
+ if (pd->cache)
+ eina_hash_del(pd->cache, &obj, obj);
}
static void
unregister_atspi_object_in_bridge(const Eo *obj)
{
Eo *bridge = _elm_atspi_bridge_get();
- _bridge_object_unregister(bridge, obj);
+ if (bridge)
+ _bridge_object_unregister(bridge, obj);
}
//