empathy r2828 - trunk/libempathy
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2828 - trunk/libempathy
- Date: Mon, 13 Apr 2009 15:19:06 +0000 (UTC)
Author: xclaesse
Date: Mon Apr 13 15:19:06 2009
New Revision: 2828
URL: http://svn.gnome.org/viewvc/empathy?rev=2828&view=rev
Log:
empathy_tp_tube_new_stream_tube: allow NULL as parameters. Fixes #575817
From: Guillaume Desmottes <gdesmott gnome org>
Modified:
trunk/libempathy/empathy-tp-tube.c
Modified: trunk/libempathy/empathy-tp-tube.c
==============================================================================
--- trunk/libempathy/empathy-tp-tube.c (original)
+++ trunk/libempathy/empathy-tp-tube.c Mon Apr 13 15:19:06 2009
@@ -347,6 +347,12 @@
dbus_g_type_struct_set (address, 0, hostname, 1, port, G_MAXUINT);
control_param = tp_g_value_slice_new (G_TYPE_STRING);
+ if (parameters == NULL)
+ /* Pass an empty dict as parameters */
+ parameters = g_hash_table_new (g_str_hash, g_str_equal);
+ else
+ g_hash_table_ref (parameters);
+
if (!emp_cli_channel_type_stream_tube_run_offer_stream_tube (
TP_PROXY(channel), -1, type, address,
TP_SOCKET_ACCESS_CONTROL_LOCALHOST, control_param, parameters,
@@ -369,6 +375,7 @@
tp_g_value_slice_free (address);
tp_g_value_slice_free (control_param);
g_object_unref (connection);
+ g_hash_table_unref (parameters);
return tube;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]