AtspiDeviceListenerCB: remove const from event prototype 17/254817/1
authorMike Gorse <mgorse@suse.com>
Tue, 23 Feb 2021 16:12:15 +0000 (10:12 -0600)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Tue, 9 Mar 2021 15:10:35 +0000 (16:10 +0100)
commitca48dcb6f2ab0aa08bb72711de6da044cd46d8fb
treeb0d950dddcaf5dcfba71df00c25fd6f73663032c
parent679efa8e2bd9455fb6242c4d2dabfdca2a0612ec
AtspiDeviceListenerCB: remove const from event prototype

The parameter is marked with (transfer full), and the code expects the caller
to free the event, so adjust the prototype to clarify the expected behavior.
Also fix a related memory leak in atspi-device-legacy.c.

Fixes #31

Change-Id: I268c80df3f251ca99456827a878e78f191a18736
atspi/atspi-device-legacy.c
atspi/atspi-device-listener.h