summaryrefslogtreecommitdiff
path: root/atspi/atspi-device-listener.h
diff options
context:
space:
mode:
authorMike Gorse <mgorse@suse.com>2021-02-23 10:12:15 -0600
committerMike Gorse <mgorse@suse.com>2021-02-23 10:12:15 -0600
commit7dfb0b7fc2d1710ef7fad54f910fa4c6a5e3af17 (patch)
tree374ec0523546f4a677469eb45f737c99fc3400f1 /atspi/atspi-device-listener.h
parentc1f698deeb1d283ee1df68715a0465785d218a3a (diff)
downloadat-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.h2
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);
/**