summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2011-10-31 14:05:12 -0200
committerAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2011-10-31 14:05:14 -0200
commited09e896b3c249568192e92b5195462e626918fb (patch)
tree41a0883fd33243678e920a10fd4475e1e3c7bfe7
parent08da102662f74cf084e4d2bdfc86f2b15e33ca66 (diff)
parentf5f7cc6b3407af00eb594aca4c2ffc797f987846 (diff)
Merge branch 'memory-leaks'
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
-rw-r--r--src/conn-presence.c2
-rw-r--r--src/connection.c4
-rw-r--r--src/roster.c2
3 files changed, 5 insertions, 3 deletions
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);
}
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);
diff --git a/src/roster.c b/src/roster.c
index 3a818ff0a..85b654cda 100644
--- a/src/roster.c
+++ b/src/roster.c
@@ -1756,6 +1756,8 @@ roster_received_cb (GObject *source_object,
result, &response, &error))
{
got_roster_iq (self, response);
+
+ g_object_unref (response);
}
else
{