telepathy-gabble: roster: add the 'group' string to RemoveGroupContext
Guillaume Desmottes
gdesmott at kemper.freedesktop.org
Thu Oct 10 11:50:13 PDT 2013
Module: telepathy-gabble
Branch: master
Commit: e5e3f2689a04ff1079f845e2374df348bf7a975f
URL: http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=e5e3f2689a04ff1079f845e2374df348bf7a975f
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date: Tue Oct 8 16:33:19 2013 -0400
roster: add the 'group' string to RemoveGroupContext
---
src/roster.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/roster.c b/src/roster.c
index d2cc4da..385a037 100644
--- a/src/roster.c
+++ b/src/roster.c
@@ -3363,6 +3363,7 @@ finally:
typedef struct {
TpHandle group_handle;
+ gchar *group;
GAsyncReadyCallback callback;
gpointer user_data;
TpHandleSet *contacts;
@@ -3441,6 +3442,7 @@ gabble_roster_remove_group_removed_cb (GObject *source,
context->callback (source, result, context->user_data);
tp_clear_pointer (&context->contacts, tp_handle_set_destroy);
+ g_free (context->group);
g_slice_free (RemoveGroupContext, context);
}
@@ -3462,6 +3464,7 @@ gabble_roster_remove_group_async (TpBaseContactList *base,
context = g_slice_new0 (RemoveGroupContext);
context->group_handle = tp_handle_lookup (group_repo, group, NULL, NULL);
+ context->group = g_strdup (group);
context->callback = callback;
context->user_data = user_data;
context->contacts = tp_handle_set_new (contact_repo);
More information about the telepathy-commits
mailing list