From 1a857591cec4d3d47080732c3703ca57e037db0c Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 13 Mar 2014 13:57:22 -0500 Subject: Make sure to clean up the timer --- src/accounts-service-user.vala | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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) { -- cgit v1.2.3