aboutsummaryrefslogtreecommitdiff
path: root/src/accounts-service-user.vala
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-03-13 13:57:22 -0500
committerTed Gould <ted@gould.cx>2014-03-13 13:57:22 -0500
commit1a857591cec4d3d47080732c3703ca57e037db0c (patch)
treea0c29a3f2c009c5b24f2b2064d7246475eb6e73c /src/accounts-service-user.vala
parente9f0b68ab8b9afec9466011b8a8bae3b202b4bf9 (diff)
downloadayatana-indicator-sound-1a857591cec4d3d47080732c3703ca57e037db0c.tar.gz
ayatana-indicator-sound-1a857591cec4d3d47080732c3703ca57e037db0c.tar.bz2
ayatana-indicator-sound-1a857591cec4d3d47080732c3703ca57e037db0c.zip
Make sure to clean up the timer
Diffstat (limited to 'src/accounts-service-user.vala')
-rw-r--r--src/accounts-service-user.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/accounts-service-user.vala b/src/accounts-service-user.vala
index f021764..052c7a0 100644
--- a/src/accounts-service-user.vala
+++ b/src/accounts-service-user.vala
@@ -101,6 +101,11 @@ public class AccountsServiceUser : Object {
~AccountsServiceUser () {
this.player = null;
+
+ if (this.timer != 0) {
+ GLib.Source.remove(this.timer);
+ this.timer = 0;
+ }
}
void new_proxy (GLib.Object? obj, AsyncResult res) {