diff options
Diffstat (limited to 'toxav/video.c')
-rw-r--r-- | toxav/video.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/toxav/video.c b/toxav/video.c index 7855f142..3d3714eb 100644 --- a/toxav/video.c +++ b/toxav/video.c | |||
@@ -351,6 +351,10 @@ int vc_queue_message(Mono_Time *mono_time, void *vcp, struct RTPMessage *msg) | |||
351 | * this function gets called from handle_rtp_packet() and handle_rtp_packet_v3() | 351 | * this function gets called from handle_rtp_packet() and handle_rtp_packet_v3() |
352 | */ | 352 | */ |
353 | if (!vcp || !msg) { | 353 | if (!vcp || !msg) { |
354 | if (msg) { | ||
355 | free(msg); | ||
356 | } | ||
357 | |||
354 | return -1; | 358 | return -1; |
355 | } | 359 | } |
356 | 360 | ||