aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-03-20 17:06:07 -0500
committerTed Gould <ted@gould.cx>2014-03-20 17:06:07 -0500
commit9d458fd02cc5180b9728186690026fd296edd9d9 (patch)
treec5789d274e10fc6cf030853aebf8c9f794080656
parentf444eecaec57ab4966f2ebcfce0aefc0f8fbb6ba (diff)
downloadayatana-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.vala5
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 */