diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2011-06-22 13:08:34 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2011-06-24 17:39:22 -0400 |
commit | 4b4ca908468975f1c6ff7a47b56b0cd64d443f01 (patch) | |
tree | 0ec69900cc162809b57e8fde5e05e20fa1c912e8 | |
parent | 1e4fe212884f8b6c36ab40297bfac4605ec85b53 (diff) | |
download | telepathy-farstream-4b4ca908468975f1c6ff7a47b56b0cd64d443f01.tar.gz |
Don't crash if named telephony event is sent before connecting
-rw-r--r-- | telepathy-farstream/stream.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/telepathy-farstream/stream.c b/telepathy-farstream/stream.c index 78aa9d6..02eaefb 100644 --- a/telepathy-farstream/stream.c +++ b/telepathy-farstream/stream.c @@ -2078,6 +2078,8 @@ start_named_telephony_event (TpMediaStreamHandler *proxy, "codecs", &codecs, NULL); + if (send_codec == NULL) + goto out; if (check_codecs_for_telephone_event (self, &codecs, send_codec, codecid)) { @@ -2108,6 +2110,8 @@ start_named_telephony_event (TpMediaStreamHandler *proxy, g_queue_push_tail (&self->priv->events_to_send, dtmfevent); } +out: + fs_codec_destroy (send_codec); fs_codec_list_destroy (codecs); } |