From cb97cf5832904d9ce05c93318f43d8b83fb5aa37 Mon Sep 17 00:00:00 2001 From: "Andre Moreira Magalhaes (andrunko)" Date: Mon, 31 Oct 2011 13:48:15 -0200 Subject: conn-presence: Properly free priv member. --- src/conn-presence.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/conn-presence.c b/src/conn-presence.c index d9c90e793..fcbaf3d80 100644 --- a/src/conn-presence.c +++ b/src/conn-presence.c @@ -2039,6 +2039,8 @@ conn_presence_finalize (GabbleConnection *conn) if (priv->iq_list_push_cb != NULL) lm_message_handler_unref (priv->iq_list_push_cb); + g_slice_free (GabbleConnectionPresencePrivate, priv); + tp_presence_mixin_finalize ((GObject *) conn); } -- cgit v1.2.3 From 1d61ece67ffac336e4beb430cb1da6e2b4f971cb Mon Sep 17 00:00:00 2001 From: "Andre Moreira Magalhaes (andrunko)" Date: Mon, 31 Oct 2011 13:54:40 -0200 Subject: connection: Remove unnecessary extra copy of caps when updating capabilities. --- src/connection.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/connection.c b/src/connection.c index ad58ebb7d..eeec1cd16 100644 --- a/src/connection.c +++ b/src/connection.c @@ -3378,13 +3378,11 @@ gabble_connection_update_capabilities ( { GabbleConnection *self = GABBLE_CONNECTION (iface); TpBaseConnection *base = (TpBaseConnection *) self; - GabbleCapabilitySet *old_caps; + GabbleCapabilitySet *old_caps = NULL; TpChannelManagerIter iter; TpChannelManager *manager; guint i; - old_caps = gabble_capability_set_copy (self->priv->all_caps); - /* Now that someone has told us our *actual* capabilities, we can stop * advertising spurious caps in initial presence */ gabble_capability_set_clear (self->priv->bonus_caps); -- cgit v1.2.3 From f5f7cc6b3407af00eb594aca4c2ffc797f987846 Mon Sep 17 00:00:00 2001 From: "Andre Moreira Magalhaes (andrunko)" Date: Mon, 31 Oct 2011 13:55:18 -0200 Subject: roster: Do not leak the roster stanza. --- src/roster.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/roster.c b/src/roster.c index d7c05272c..d447ca29c 100644 --- a/src/roster.c +++ b/src/roster.c @@ -1746,6 +1746,8 @@ roster_received_cb (GObject *source_object, result, &response, &error)) { got_roster_iq (self, response); + + g_object_unref (response); } else { -- cgit v1.2.3