elm_atspi_bridge: Fix resource leak

Summary:
Coverity reports a resource leak here because the dbus 'reply' message
is never unref'd. Fix that.

Fixes Coverity CID1399429

@fix

Depends on D8344

Reviewers: raster, cedric, zmike, bu5hm4n, stefan_schmidt

Reviewed By: cedric

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8345
This commit is contained in:
Christopher Michael 2019-03-15 08:57:24 -04:00
parent c802103789
commit 1688b5d511
1 changed files with 2 additions and 0 deletions

View File

@ -4707,6 +4707,8 @@ _elm_atspi_bridge_key_filter(void *data, void *loop EINA_UNUSED, int type, void
if (!eldbus_message_arguments_get(reply, "b", &ret))
ERR("Invalid answer signature");
eldbus_message_unref(reply);
if (ret)
return EINA_FALSE;