summaryrefslogtreecommitdiff
path: root/mission-control
diff options
context:
space:
mode:
authorStef Walter <stefw@collabora.co.uk>2011-03-11 15:50:48 +0100
committerStef Walter <stefw@collabora.co.uk>2011-03-11 15:50:48 +0100
commit2592a249eb1f584291edd15f4ff1e8a5a7139d92 (patch)
treefe7934c994f67e5877c57ac73e209cd5ddba82d8 /mission-control
parent7fb0af22fed6b4b02f474431d8a11adf3d7eaa4a (diff)
Cancel the timeout callback when the manager is disposed.
Diffstat (limited to 'mission-control')
-rw-r--r--mission-control/mcp-account-manager-ytstenut.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mission-control/mcp-account-manager-ytstenut.c b/mission-control/mcp-account-manager-ytstenut.c
index 4ab2dac..f2047d7 100644
--- a/mission-control/mcp-account-manager-ytstenut.c
+++ b/mission-control/mcp-account-manager-ytstenut.c
@@ -354,6 +354,10 @@ mcp_account_manager_ytstenut_dispose (GObject *object)
McpAccountManagerYtstenut *self = MCP_ACCOUNT_MANAGER_YTSTENUT (object);
McpAccountManagerYtstenutPrivate *priv = self->priv;
+ if (priv->timeout_id != 0)
+ g_source_remove (priv->timeout_id);
+ priv->timeout_id = 0;
+
g_hash_table_remove_all (priv->hold_requests);
tp_clear_object (&priv->dbus_daemon);
tp_clear_object (&priv->account_proxy);