elm_atspi_bridge: unref eldbus msg before returning to avoid memory leak
If we goto fail here we still have the ret eldbus message referenced. Make sure we unref so it can be free'd and we do not leak memory. CID: 1353603
This commit is contained in:
parent
39eb3004f8
commit
6b7172d6e3
|
@ -828,6 +828,7 @@ _accessible_get_relation_set(const Eldbus_Service_Interface *iface EINA_UNUSED,
|
|||
return ret;
|
||||
|
||||
fail:
|
||||
eldbus_message_unref(ret);
|
||||
return eldbus_message_error_new(msg, "org.freedesktop.DBus.Error.Failed", "Unable to get relation set.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue