[Telepathy-commits] [telepathy-gabble/master] Don't leak a hash table on calls to GetAll('o.fd.T.Channel')

Will Thompson will.thompson at collabora.co.uk
Fri Sep 19 09:29:46 PDT 2008


---
 src/im-channel.c       |    2 +-
 src/media-channel.c    |    2 +-
 src/muc-channel.c      |    2 +-
 src/roomlist-channel.c |    2 +-
 src/roster-channel.c   |    2 +-
 src/tubes-channel.c    |    2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/im-channel.c b/src/im-channel.c
index a158870..1e0863f 100644
--- a/src/im-channel.c
+++ b/src/im-channel.c
@@ -215,7 +215,7 @@ gabble_im_channel_get_property (GObject    *object,
       g_value_set_boolean (value, priv->closed);
       break;
     case PROP_CHANNEL_PROPERTIES:
-      g_value_set_boxed (value,
+      g_value_take_boxed (value,
           tp_dbus_properties_mixin_make_properties_hash (object,
               TP_IFACE_CHANNEL, "TargetHandle",
               TP_IFACE_CHANNEL, "TargetHandleType",
diff --git a/src/media-channel.c b/src/media-channel.c
index 8285dff..79d8505 100644
--- a/src/media-channel.c
+++ b/src/media-channel.c
@@ -435,7 +435,7 @@ gabble_media_channel_get_property (GObject    *object,
       g_value_set_boolean (value, priv->closed);
       break;
     case PROP_CHANNEL_PROPERTIES:
-      g_value_set_boxed (value,
+      g_value_take_boxed (value,
           tp_dbus_properties_mixin_make_properties_hash (object,
               TP_IFACE_CHANNEL, "TargetHandle",
               TP_IFACE_CHANNEL, "TargetHandleType",
diff --git a/src/muc-channel.c b/src/muc-channel.c
index d74f550..5a5d3a9 100644
--- a/src/muc-channel.c
+++ b/src/muc-channel.c
@@ -851,7 +851,7 @@ gabble_muc_channel_get_property (GObject    *object,
       g_value_set_boolean (value, priv->closed);
       break;
     case PROP_CHANNEL_PROPERTIES:
-      g_value_set_boxed (value,
+      g_value_take_boxed (value,
           tp_dbus_properties_mixin_make_properties_hash (object,
               TP_IFACE_CHANNEL, "TargetHandle",
               TP_IFACE_CHANNEL, "TargetHandleType",
diff --git a/src/roomlist-channel.c b/src/roomlist-channel.c
index 9813bc8..1dd15df 100644
--- a/src/roomlist-channel.c
+++ b/src/roomlist-channel.c
@@ -194,7 +194,7 @@ gabble_roomlist_channel_get_property (GObject    *object,
       g_value_set_boolean (value, priv->closed);
       break;
     case PROP_CHANNEL_PROPERTIES:
-      g_value_set_boxed (value,
+      g_value_take_boxed (value,
           tp_dbus_properties_mixin_make_properties_hash (object,
               TP_IFACE_CHANNEL, "TargetHandle",
               TP_IFACE_CHANNEL, "TargetHandleType",
diff --git a/src/roster-channel.c b/src/roster-channel.c
index 010dd7b..f59959e 100644
--- a/src/roster-channel.c
+++ b/src/roster-channel.c
@@ -247,7 +247,7 @@ gabble_roster_channel_get_property (GObject    *object,
       g_value_set_boolean (value, priv->closed);
       break;
     case PROP_CHANNEL_PROPERTIES:
-      g_value_set_boxed (value,
+      g_value_take_boxed (value,
           tp_dbus_properties_mixin_make_properties_hash (object,
               TP_IFACE_CHANNEL, "TargetHandle",
               TP_IFACE_CHANNEL, "TargetHandleType",
diff --git a/src/tubes-channel.c b/src/tubes-channel.c
index 44a84d5..1790f49 100644
--- a/src/tubes-channel.c
+++ b/src/tubes-channel.c
@@ -270,7 +270,7 @@ gabble_tubes_channel_get_property (GObject *object,
         g_value_set_boolean (value, priv->closed);
         break;
       case PROP_CHANNEL_PROPERTIES:
-        g_value_set_boxed (value,
+        g_value_take_boxed (value,
             tp_dbus_properties_mixin_make_properties_hash (object,
                 TP_IFACE_CHANNEL, "TargetHandle",
                 TP_IFACE_CHANNEL, "TargetHandleType",
-- 
1.5.6.5




More information about the Telepathy-commits mailing list