Skip to content

Set parent to qobjects and ensure memory is freed

Tom Englund requested to merge (removed):fsanitize2 into master

set a parent to OutputDeviceV2Interface and OutputInterface so the wayland globals and heap allocated memory are freed. , they are removed when the signals from either the workspace or outputbackend emits outputRemoved but upon closing kwin the workspace destructs everything without either workspace or outputbackend emitting those signals.

in the destructor of OutputDeviceV2Interface use the provided remove() function to make sure we dont double free the wayland global. just like the OutputInterface destructor already does.

set a parent to TextInputManagerV1Interface, TextInputManagerV2Interface, TextInputManagerV3Interface in inputmethod so they also free the memory of the interfaces.

found with fsanitize=adress

Merge request reports