Skip to content

GdkDevice leak fix

Sebastian Keller requested to merge skeller/gtk:gdk-device-leak-fix into master

Fixes for a GdkDevice leak on X11. This can be triggered by any kind of device removal as well as by switching TTYs.

==7284== 3,301 (504 direct, 2,797 indirect) bytes in 3 blocks are definitely lost in loss record 16,970 of 17,195
==7284==    at 0x483980B: malloc (vg_replace_malloc.c:309)
==7284==    by 0x4FD12D0: g_malloc (gmem.c:102)
==7284==    by 0x4FE9414: g_slice_alloc (gslice.c:1024)
==7284==    by 0x4FE9A71: g_slice_alloc0 (gslice.c:1050)
==7284==    by 0x50D7A8B: g_type_create_instance (gtype.c:1849)
==7284==    by 0x50B693E: g_object_new_internal (gobject.c:1937)
==7284==    by 0x50B8848: g_object_new_valist (gobject.c:2262)
==7284==    by 0x50B8B78: g_object_new (gobject.c:1780)
==7284==    by 0x4C6AB4C: create_device.isra.0 (gdkdevicemanager-xi2.c:556)
==7284==    by 0x4C6D6DC: add_device (gdkdevicemanager-xi2.c:616)
==7284==    by 0x4C6D6DC: gdk_x11_device_manager_xi2_constructed (gdkdevicemanager-xi2.c:767)
==7284==    by 0x50B6B40: g_object_new_internal (gobject.c:1977)
==7284==    by 0x50B8848: g_object_new_valist (gobject.c:2262)

Merge request reports

Loading