Skip to content
  • David Redondo's avatar
    Fix crash when target is destroyed before monitor · 75662855
    David Redondo authored and Nate Graham's avatar Nate Graham committed
    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
    
    
    (cherry picked from commit 1982415f)
    75662855