From 9d458fd02cc5180b9728186690026fd296edd9d9 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 20 Mar 2014 17:06:07 -0500 Subject: Clear the player to ensure we don't get into a ref loop --- src/service.vala | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/service.vala') 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 */ -- cgit v1.2.3