diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2010-12-08 17:10:16 +0100 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2011-07-15 16:02:31 +0200 |
commit | 4426eb12caa562a69da5b0f63a0ffb888425225f (patch) | |
tree | 52523f3f9ec1fbf492a3c826716ee4c449347188 /telepathy-glib/observe-channels-context.c | |
parent | dedcd5b114c17ff7593a7a01d9a85ed373c34af3 (diff) | |
download | telepathy-glib-4426eb12caa562a69da5b0f63a0ffb888425225f.tar.gz |
It is useless to ref/unref channels in the GPtrArray, it has a free_func anyway
Diffstat (limited to 'telepathy-glib/observe-channels-context.c')
-rw-r--r-- | telepathy-glib/observe-channels-context.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/telepathy-glib/observe-channels-context.c b/telepathy-glib/observe-channels-context.c index 3e80f32af..09f4f857b 100644 --- a/telepathy-glib/observe-channels-context.c +++ b/telepathy-glib/observe-channels-context.c @@ -129,7 +129,6 @@ tp_observe_channels_context_dispose (GObject *object) if (self->channels != NULL) { - g_ptr_array_foreach (self->channels, (GFunc) g_object_unref, NULL); g_ptr_array_unref (self->channels); self->channels = NULL; } @@ -215,7 +214,6 @@ tp_observe_channels_context_set_property (GObject *object, break; case PROP_CHANNELS: self->channels = g_value_dup_boxed (value); - g_ptr_array_foreach (self->channels, (GFunc) g_object_ref, NULL); break; case PROP_DISPATCH_OPERATION: self->dispatch_operation = g_value_dup_object (value); |