andreamazz / SubtleVolume

Replace the system volume popup with a more subtle indicator.
MIT License
1.2k stars 63 forks source link

Not removing self as an observer #6

Closed gapl closed 8 years ago

gapl commented 8 years ago

Basically what it says in the title. Would gladly open a pull request when I have 15 min to breathe :) Otherwise this is the snippet:

deinit {
    AVAudioSession.sharedInstance().removeObserver(self, forKeyPath: "outputVolume", context: nil)
}
andreamazz commented 8 years ago

Hi @gapl My bad! I'll push a fixed version right away. Thanks for the heads up 👍