summaryrefslogtreecommitdiff
path: root/libavcodec/audiotoolboxdec.c
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2016-04-19 03:44:17 -0500
committerRodger Combs <rodger.combs@gmail.com>2016-04-26 10:35:09 -0500
commit95116bf35f1bbc15a41be67f70f31b8de6075b8f (patch)
tree2f8f690630e40da9d71b1d5587b1df2c9c379a5e /libavcodec/audiotoolboxdec.c
parent0cb19c30c6a14418eaa6858db303602815fe3ab1 (diff)
lavc/audiotoolboxdec: fix memory leak
Diffstat (limited to 'libavcodec/audiotoolboxdec.c')
-rw-r--r--libavcodec/audiotoolboxdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c
index 31e14d4f90..58d05f8e55 100644
--- a/libavcodec/audiotoolboxdec.c
+++ b/libavcodec/audiotoolboxdec.c
@@ -414,6 +414,7 @@ static OSStatus ffat_decode_callback(AudioConverterRef converter, UInt32 *nb_pac
return 0;
}
+ av_packet_unref(&at->in_pkt);
av_packet_move_ref(&at->in_pkt, &at->new_in_pkt);
at->new_in_pkt.data = 0;
at->new_in_pkt.size = 0;