Skip to content

Fix crash when target is destroyed before monitor

David Redondo requested to merge work/davidre/callbackcrash into master

The target is saved as a QPointer inside VolumeMonitor. This is generally a good idea since its lifetime is managed somewhere else. However in this case this means we are not noticing when it is deleted and cannot distinguish that from not having a set target. When the VolumeObject is deleted before the monitor, it would fail to unset the pulseaudio callbacks resulting in them being called after destruction. BUG:437184

Merge request reports