summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-05-10 16:22:15 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-05-10 16:22:15 +0100
commit79bff23750a5fbddd0adb6e08396dd9f36d2ad84 (patch)
tree538b3ea80c4371292d89385a7991f0c25e265ad2
parent92991d03cd048b40e597e0b8b87712093ddf1844 (diff)
TpChannelDispatchOperation: assert that we're not leaking properties
-rw-r--r--telepathy-glib/channel-dispatch-operation.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/telepathy-glib/channel-dispatch-operation.c b/telepathy-glib/channel-dispatch-operation.c
index 3aa86cca..ea1ab62a 100644
--- a/telepathy-glib/channel-dispatch-operation.c
+++ b/telepathy-glib/channel-dispatch-operation.c
@@ -370,10 +370,12 @@ tp_channel_dispatch_operation_set_property (GObject *object,
switch (property_id)
{
case PROP_ACCOUNT:
+ g_assert (self->priv->account == NULL); /* construct-only */
self->priv->account = g_value_dup_object (value);
break;
case PROP_CONNECTION:
+ g_assert (self->priv->connection == NULL); /* construct-only */
self->priv->connection = g_value_dup_object (value);
break;
@@ -382,6 +384,8 @@ tp_channel_dispatch_operation_set_property (GObject *object,
GPtrArray *tmp;
guint i;
+ g_assert (self->priv->channels == NULL); /* construct-only */
+
/* g_value_dup_boxed returns a new reference to the same
* GPtrArray which is not what we want (removing a channel from the
* CDO array shouldn't remove it from the caller). Copying the