diff options
author | Mike Gorse <mgorse@suse.com> | 2021-02-23 10:12:15 -0600 |
---|---|---|
committer | Mike Gorse <mgorse@suse.com> | 2021-02-23 10:12:15 -0600 |
commit | 7dfb0b7fc2d1710ef7fad54f910fa4c6a5e3af17 (patch) | |
tree | 374ec0523546f4a677469eb45f737c99fc3400f1 /atspi/atspi-device-listener.h | |
parent | c1f698deeb1d283ee1df68715a0465785d218a3a (diff) | |
download | at-spi2-core-7dfb0b7fc2d1710ef7fad54f910fa4c6a5e3af17.tar.gz |
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
Diffstat (limited to 'atspi/atspi-device-listener.h')
-rw-r--r-- | atspi/atspi-device-listener.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/atspi/atspi-device-listener.h b/atspi/atspi-device-listener.h index d91a2039..718a4153 100644 --- a/atspi/atspi-device-listener.h +++ b/atspi/atspi-device-listener.h @@ -45,7 +45,7 @@ GType atspi_device_event_get_type (void); * Returns: #TRUE if the client wishes to consume/preempt the event, preventing it from being * relayed to the currently focussed application, #FALSE if the event delivery should proceed as normal. **/ -typedef gboolean (*AtspiDeviceListenerCB) (const AtspiDeviceEvent *stroke, +typedef gboolean (*AtspiDeviceListenerCB) (AtspiDeviceEvent *stroke, void *user_data); /** |