diff options
author | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2011-02-22 14:31:38 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2011-02-22 15:20:06 -0500 |
commit | c71b1f30dbad61d3a3704bbe567d3c3dcd0d8beb (patch) | |
tree | 35e4d4417b5453b2c89197a915f13625474f62aa /telepathy-farsight | |
parent | ef455a2b9b95999dd7bd9dbdf43c7e3177fb50ad (diff) |
Don't leak the tpcodecs if we do Supported then Update
Diffstat (limited to 'telepathy-farsight')
-rw-r--r-- | telepathy-farsight/stream.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/telepathy-farsight/stream.c b/telepathy-farsight/stream.c index 82f8e6c..8660282 100644 --- a/telepathy-farsight/stream.c +++ b/telepathy-farsight/stream.c @@ -2330,7 +2330,8 @@ _tf_stream_try_sending_codecs (TfStream *stream) if (stream->priv->last_sent_codecs != NULL && !fs_codec_list_are_equal (fscodecs, stream->priv->last_sent_codecs)) { - tpcodecs = fs_codecs_to_tp (stream, fscodecs); + if (!tpcodecs) + tpcodecs = fs_codecs_to_tp (stream, fscodecs); DEBUG (stream, "calling MediaStreamHandler::CodecsUpdated"); tp_cli_media_stream_handler_call_codecs_updated ( |