elm_atspi_bridget: Fix resource leak

Coverity reports and 'req' leaks here so we need to unref the eldbus
message object if we are exiting this function.

Fixes CID1399424

@fix
This commit is contained in:
Christopher Michael 2019-04-23 09:13:19 -04:00
parent d40b18540e
commit 281e90cda5
1 changed files with 5 additions and 1 deletions

View File

@ -4688,7 +4688,11 @@ _elm_atspi_bridge_key_filter(void *data, void *loop EINA_UNUSED, int type, void
}
ke = _key_event_info_new(type, key_event, bridge);
if (!ke) return EINA_TRUE;
if (!ke)
{
eldbus_message_unref(req);
return EINA_TRUE;
}
iter = eldbus_message_iter_get(req);
_iter_marshall_key_event(iter, ke);