[Telepathy-commits] [telepathy-glib/master] tp_cm_param_setter_offset: use g_value_dup_boxed to copy 'ay'

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Thu Mar 26 08:40:13 PDT 2009


---
 telepathy-glib/base-connection-manager.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/telepathy-glib/base-connection-manager.c b/telepathy-glib/base-connection-manager.c
index 42eb412..90924ec 100644
--- a/telepathy-glib/base-connection-manager.c
+++ b/telepathy-glib/base-connection-manager.c
@@ -606,15 +606,13 @@ tp_cm_param_setter_offset (const TpCMParamSpec *paramspec,
             case DBUS_TYPE_BYTE:
               {
                 GArray **save_to = (GArray **) (params_mem + paramspec->offset);
-                GArray *a = g_value_get_boxed (value);
 
                 if (*save_to != NULL)
                   {
                     g_array_free (*save_to, TRUE);
                   }
-                *save_to = g_array_sized_new (FALSE, FALSE, sizeof(guint8), a->len);
-                g_array_append_vals (*save_to, a->data, a->len);
-                DEBUG ("%s = ...[%u]", paramspec->name, a->len);
+                *save_to = g_value_dup_boxed (value);
+                DEBUG ("%s = ...[%u]", paramspec->name, (*save_to)->len);
               }
               break;
 
-- 
1.5.6.5



More information about the telepathy-commits mailing list