summaryrefslogtreecommitdiff
path: root/toxav/codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxav/codec.c')
-rw-r--r--toxav/codec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toxav/codec.c b/toxav/codec.c
index a1aa2869..eede83b4 100644
--- a/toxav/codec.c
+++ b/toxav/codec.c
@@ -480,6 +480,7 @@ CSSession *cs_new(const ToxAvCSettings *cs_self, const ToxAvCSettings *cs_peer,
480 480
481 if (create_recursive_mutex(cs->queue_mutex) != 0) { 481 if (create_recursive_mutex(cs->queue_mutex) != 0) {
482 LOGGER_WARNING("Failed to create recursive mutex!"); 482 LOGGER_WARNING("Failed to create recursive mutex!");
483 free(cs);
483 return NULL; 484 return NULL;
484 } 485 }
485 486
@@ -667,4 +668,4 @@ void queue_message(RTPSession *session, RTPMessage *msg)
667end: 668end:
668 rtp_free_msg(NULL, msg); 669 rtp_free_msg(NULL, msg);
669 } 670 }
670} \ No newline at end of file 671}