diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-10-05 13:40:35 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-10-05 15:45:41 +0200 |
commit | d02f5ac938e10c6f9f26fbe8b6064c3d1f2d4c05 (patch) | |
tree | 3850f1f6172784c4d5529c54500363b60755d71f /telepathy-glib | |
parent | b0de2f9d77725b47b495e2418821ebcf2a45cdff (diff) | |
download | telepathy-glib-d02f5ac938e10c6f9f26fbe8b6064c3d1f2d4c05.tar.gz |
assert that we don't leak parameters
As a side effect we don't have to allow user to call offer on an incoming tube
as that would lead to a paramters leak.
Diffstat (limited to 'telepathy-glib')
-rw-r--r-- | telepathy-glib/stream-tube-channel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/telepathy-glib/stream-tube-channel.c b/telepathy-glib/stream-tube-channel.c index 8e84dd79f..58ee0c487 100644 --- a/telepathy-glib/stream-tube-channel.c +++ b/telepathy-glib/stream-tube-channel.c @@ -1316,6 +1316,7 @@ _offer_with_address (TpStreamTubeChannel *self, goto finally; } + g_assert (self->priv->parameters == NULL); if (params != NULL) self->priv->parameters = g_hash_table_ref (params); else @@ -1437,6 +1438,7 @@ tp_stream_tube_channel_offer_async (TpStreamTubeChannel *self, g_return_if_fail (TP_IS_STREAM_TUBE_CHANNEL (self)); g_return_if_fail (self->priv->result == NULL); + g_return_if_fail (tp_channel_get_requested (TP_CHANNEL (self))); if (self->priv->service != NULL) { |