diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-03-30 19:30:41 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-03-30 19:30:41 +0800 |
commit | 6101ab6b84beb8a9e19527a2416e0e6fcd6438c1 (patch) | |
tree | e749e6646f65251662114bd655e2d469f2929d91 /libempathy/empathy-tp-call.c | |
parent | 174a1b4a20753f7467c1c78f5163660a233fb36b (diff) | |
download | gsoc2013-empathy-6101ab6b84beb8a9e19527a2416e0e6fcd6438c1.tar gsoc2013-empathy-6101ab6b84beb8a9e19527a2416e0e6fcd6438c1.tar.gz gsoc2013-empathy-6101ab6b84beb8a9e19527a2416e0e6fcd6438c1.tar.bz2 gsoc2013-empathy-6101ab6b84beb8a9e19527a2416e0e6fcd6438c1.tar.lz gsoc2013-empathy-6101ab6b84beb8a9e19527a2416e0e6fcd6438c1.tar.xz gsoc2013-empathy-6101ab6b84beb8a9e19527a2416e0e6fcd6438c1.tar.zst gsoc2013-empathy-6101ab6b84beb8a9e19527a2416e0e6fcd6438c1.zip |
empathy_tp_call_leave: allocate the array on the stack
Diffstat (limited to 'libempathy/empathy-tp-call.c')
-rw-r--r-- | libempathy/empathy-tp-call.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c index eafeead64..30ba27dfe 100644 --- a/libempathy/empathy-tp-call.c +++ b/libempathy/empathy-tp-call.c @@ -837,7 +837,7 @@ empathy_tp_call_leave (EmpathyTpCall *self) { EmpathyTpCallPriv *priv = GET_PRIV (self); TpHandle self_handle; - GArray *array; + GArray array = { &self_handle, 1 }; if (!tp_proxy_has_interface_by_id (priv->channel, TP_IFACE_QUARK_CHANNEL_INTERFACE_GROUP)) @@ -854,11 +854,6 @@ empathy_tp_call_leave (EmpathyTpCall *self) return; } - array = g_array_sized_new (FALSE, FALSE, sizeof (TpHandle), 1); - g_array_insert_val (array, 0, self_handle); - - tp_cli_channel_interface_group_call_remove_members (priv->channel, -1, array, + tp_cli_channel_interface_group_call_remove_members (priv->channel, -1, &array, "", leave_remove_members_cb, self, NULL, G_OBJECT (self)); - - g_array_free (array, TRUE); } |