[Telepathy-commits] [telepathy-salut/master] salut_muc_channel_send_invitation: don't leak the contact
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Tue Dec 23 02:41:42 PST 2008
---
src/salut-muc-channel.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/salut-muc-channel.c b/src/salut-muc-channel.c
index b0ff803..973df22 100644
--- a/src/salut-muc-channel.c
+++ b/src/salut-muc-channel.c
@@ -521,6 +521,7 @@ pending_connection_for_invite_data_free (
struct pending_connection_for_invite_data *data)
{
g_object_unref (data->invite);
+ g_object_unref (data->contact);
g_slice_free (struct pending_connection_for_invite_data, data);
}
@@ -628,6 +629,7 @@ salut_muc_channel_send_invitation (SalutMucChannel *self,
SALUT_XMPP_CONNECTION_MANAGER_REQUEST_CONNECTION_RESULT_FAILURE)
{
DEBUG ("request connection failed");
+ g_object_unref (contact);
return FALSE;
}
@@ -639,6 +641,7 @@ salut_muc_channel_send_invitation (SalutMucChannel *self,
DEBUG ("got an existing connection. Send the invite");
result = gibber_xmpp_connection_send (connection, stanza, error);
g_object_unref (stanza);
+ g_object_unref (contact);
return TRUE;
}
--
1.5.6.5
More information about the Telepathy-commits
mailing list