diff options
author | Ted Gould <ted@gould.cx> | 2014-03-20 17:06:07 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-03-20 17:06:07 -0500 |
commit | 9d458fd02cc5180b9728186690026fd296edd9d9 (patch) | |
tree | c5789d274e10fc6cf030853aebf8c9f794080656 | |
parent | f444eecaec57ab4966f2ebcfce0aefc0f8fbb6ba (diff) | |
download | ayatana-indicator-sound-9d458fd02cc5180b9728186690026fd296edd9d9.tar.gz ayatana-indicator-sound-9d458fd02cc5180b9728186690026fd296edd9d9.tar.bz2 ayatana-indicator-sound-9d458fd02cc5180b9728186690026fd296edd9d9.zip |
Clear the player to ensure we don't get into a ref loop
-rw-r--r-- | src/service.vala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/service.vala b/src/service.vala index de03296..df33a62 100644 --- a/src/service.vala +++ b/src/service.vala @@ -67,6 +67,11 @@ public class IndicatorSound.Service: Object { } void build_accountsservice () { + /* NOTE: This is a bit of a hack to ensure that accounts service doesn't + continue to export the player by keeping a ref in the timer */ + if (this.accounts_service != null) + this.accounts_service.player = null; + this.accounts_service = null; /* If we're not exporting, don't build anything */ |