summaryrefslogtreecommitdiff
path: root/src/search-channel.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-08-24 15:48:54 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-08-24 15:48:54 +0100
commitfdc5b48b75be4abc6416da4863d07f3736aaa83f (patch)
tree0abaea124466d44918de39e3882057627a33f08a /src/search-channel.c
parentf752b8e3a5afe34acf7ab8ff4fdf0a63ce20afee (diff)
downloadtelepathy-gabble-fdc5b48b75be4abc6416da4863d07f3736aaa83f.tar.gz
gabble_search_channel_init: use g_boxed_free
Diffstat (limited to 'src/search-channel.c')
-rw-r--r--src/search-channel.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/search-channel.c b/src/search-channel.c
index 6d9c1cd34..645d95d62 100644
--- a/src/search-channel.c
+++ b/src/search-channel.c
@@ -1068,11 +1068,7 @@ gabble_search_channel_init (GabbleSearchChannel *self)
static void
free_info (GPtrArray *info)
{
- GValue v = { 0, };
-
- g_value_init (&v, GABBLE_ARRAY_TYPE_CONTACT_INFO_FIELD_LIST);
- g_value_take_boxed (&v, info);
- g_value_unset (&v);
+ g_boxed_free (GABBLE_ARRAY_TYPE_CONTACT_INFO_FIELD_LIST, info);
}
static GObject *