summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-04-26 09:51:54 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-12 12:32:33 +0200
commit55b12c5bf85c2cbee872f9ab39568843336826f9 (patch)
treefa6cd29568441035da2cf622ce7288c438a32200
parentf0c3266b454a558e9bae86c3c360d5c64777583b (diff)
pass free_parts_list as GDestroyNotify when requesting contacts
-rw-r--r--telepathy-glib/text-channel.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/telepathy-glib/text-channel.c b/telepathy-glib/text-channel.c
index 48d9ca44..5cf42421 100644
--- a/telepathy-glib/text-channel.c
+++ b/telepathy-glib/text-channel.c
@@ -622,8 +622,6 @@ got_pending_senders_contact_by_handle_cb (TpConnection *connection,
out:
_tp_proxy_set_feature_prepared (TP_PROXY (self),
TP_TEXT_CHANNEL_FEATURE_INCOMING_MESSAGES, TRUE);
-
- free_parts_list (parts_list);
}
static void
@@ -665,8 +663,6 @@ got_pending_senders_contact_by_id_cb (TpConnection *connection,
out:
_tp_proxy_set_feature_prepared (TP_PROXY (self),
TP_TEXT_CHANNEL_FEATURE_INCOMING_MESSAGES, TRUE);
-
- free_parts_list (parts_list);
}
/* There is no TP_ARRAY_TYPE_PENDING_TEXT_MESSAGE_LIST_LIST (fdo #32433) */
@@ -769,7 +765,7 @@ get_pending_messages_cb (TpProxy *proxy,
tp_connection_get_contacts_by_id (conn, sender_ids->len,
(const gchar * const *) sender_ids->pdata,
0, NULL, got_pending_senders_contact_by_id_cb, parts_list,
- NULL, G_OBJECT (result));
+ (GDestroyNotify) free_parts_list, G_OBJECT (result));
}
else
{
@@ -778,7 +774,7 @@ get_pending_messages_cb (TpProxy *proxy,
tp_connection_get_contacts_by_handle (conn, tmp->len,
(TpHandle *) tmp->data,
0, NULL, got_pending_senders_contact_by_handle_cb, parts_list,
- NULL, G_OBJECT (result));
+ (GDestroyNotify) free_parts_list, G_OBJECT (result));
g_array_unref (tmp);
}