From 929d65e2b0df330cc3995b9ea1c6ba36732407b2 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 21 Mar 2014 14:30:09 -0500 Subject: Remove sound blocked timer when the service is shutdown --- src/service.vala | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/service.vala b/src/service.vala index bfd4115..3bda52f 100644 --- a/src/service.vala +++ b/src/service.vala @@ -66,6 +66,11 @@ public class IndicatorSound.Service: Object { sharedsettings.bind ("allow-amplified-volume", this, "allow-amplified-volume", SettingsBindFlags.GET); } + ~Service() { + if (this.sound_was_blocked_timeout_id > 0) + Source.remove (this.sound_was_blocked_timeout_id); + } + void build_accountsservice () { clear_acts_player(); this.accounts_service = null; -- cgit v1.2.3