[next] telepathy-glib: TpConnection: don't leak old self-IDs
Simon McVittie
smcv at kemper.freedesktop.org
Mon Oct 8 08:23:44 PDT 2012
Module: telepathy-glib
Branch: next
Commit: 9493abc30b6003da3551cc0aea47e37e031f8e36
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=9493abc30b6003da3551cc0aea47e37e031f8e36
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Mon Oct 8 14:26:46 2012 +0100
TpConnection: don't leak old self-IDs
---
telepathy-glib/connection.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/telepathy-glib/connection.c b/telepathy-glib/connection.c
index 9c44f6a..be4d32c 100644
--- a/telepathy-glib/connection.c
+++ b/telepathy-glib/connection.c
@@ -792,6 +792,7 @@ on_self_contact_changed (TpConnection *self,
DEBUG ("SelfHandleChanged to %u, I wonder what that means?", self_handle);
self->priv->last_known_self_handle = self_handle;
+ g_free (self->priv->last_known_self_id);
self->priv->last_known_self_id = g_strdup (self_id);
if (tp_connection_get_status (self, NULL) == TP_CONNECTION_STATUS_CONNECTED)
@@ -1102,6 +1103,7 @@ _tp_connection_got_properties (TpProxy *proxy,
self->priv->introspecting_after_connected = TRUE;
self->priv->last_known_self_handle = self_handle;
+ g_free (self->priv->last_known_self_id);
self->priv->last_known_self_id = g_strdup (self_id);
self->priv->introspect_needed = g_list_append (
More information about the telepathy-commits
mailing list