Skip to content

Fix memory corruption due to incorrect g_ptr_array usage

O H requested to merge (removed):g_ptr_array into master

The code was changed from g_ptr_array_new to g_ptr_array_new_with_free_func. As a result xfpm_dbus_monitor_free_watch_data will now be called twice, once from glib core and once more from the "remove" functions. This leads to a double free. Avoid the double free by removing stale calls to xfpm_dbus_monitor_free_watch_data.

Fixes commit 0bfd3cd3

Fixes issue #125 (closed)

Signed-off-by: Olaf Hering

Merge request reports