Memory leak in Atspi Device Listener CB support
It seems that during callback call we there is memory leak. I believe that problem is here:
Line: if ((handled = eh->callback(atspi_device_event_copy(event), eh->user_data)))
As you can see the callback gets pointer to copy of the event. In the API description you can find that first parameter is const* - so you should not free this memory ( https://developer.gnome.org/libatspi/stable/AtspiDeviceListener.html#AtspiDeviceListenerCB ). As the result memory returned by atspi_device_event_copy(event) is lost.
I'm not sure there is the problem. Should it be fixed in api description or in at-spi-core code?
The "Transfer full" connected with first parameter suggest that the bug is in the description ( the const should be removed ).