diff --git a/toxav/audio.c b/toxav/audio.c index c83d4354..a0155d53 100644 --- a/toxav/audio.c +++ b/toxav/audio.c @@ -151,7 +151,8 @@ void ac_iterate(ACSession *ac) cs->last_packet_sampling_rate = rc; } else { LOGGER_WARNING(ac->log, "Failed to load packet values!"); - rtp_free_msg(msg); + free(msg); + pthread_mutex_lock(ac->queue_mutex); continue; }