diff options
author | Ted Gould <ted@gould.cx> | 2014-03-13 13:57:22 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-03-13 13:57:22 -0500 |
commit | 1a857591cec4d3d47080732c3703ca57e037db0c (patch) | |
tree | a0c29a3f2c009c5b24f2b2064d7246475eb6e73c /src | |
parent | e9f0b68ab8b9afec9466011b8a8bae3b202b4bf9 (diff) | |
download | ayatana-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')
-rw-r--r-- | src/accounts-service-user.vala | 5 |
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) { |