summaryrefslogtreecommitdiff
path: root/toxav/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxav/audio.c')
-rw-r--r--toxav/audio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/toxav/audio.c b/toxav/audio.c
index da1ea11f..cf9097d7 100644
--- a/toxav/audio.c
+++ b/toxav/audio.c
@@ -204,6 +204,10 @@ void ac_iterate(ACSession *ac)
204int ac_queue_message(Mono_Time *mono_time, void *acp, struct RTPMessage *msg) 204int ac_queue_message(Mono_Time *mono_time, void *acp, struct RTPMessage *msg)
205{ 205{
206 if (!acp || !msg) { 206 if (!acp || !msg) {
207 if (msg) {
208 free(msg);
209 }
210
207 return -1; 211 return -1;
208 } 212 }
209 213