Commit f4e593f7 authored by James Almer's avatar James Almer

avcodec/audiotoolboxdec: use av_freep()

This prevents leaving dangling pointers.
parent 3242babf
...@@ -570,8 +570,8 @@ static av_cold int ffat_close_decoder(AVCodecContext *avctx) ...@@ -570,8 +570,8 @@ static av_cold int ffat_close_decoder(AVCodecContext *avctx)
AudioConverterDispose(at->converter); AudioConverterDispose(at->converter);
av_packet_unref(&at->new_in_pkt); av_packet_unref(&at->new_in_pkt);
av_packet_unref(&at->in_pkt); av_packet_unref(&at->in_pkt);
av_free(at->decoded_data); av_freep(&at->decoded_data);
av_free(at->extradata); av_freep(&at->extradata);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment