avcodec/audiotoolboxdec: use av_freep()

This prevents leaving dangling pointers.
This commit is contained in:
James Almer 2017-09-06 13:03:29 -03:00
parent 3242babf64
commit f4e593f7b5

View File

@ -570,8 +570,8 @@ static av_cold int ffat_close_decoder(AVCodecContext *avctx)
AudioConverterDispose(at->converter);
av_packet_unref(&at->new_in_pkt);
av_packet_unref(&at->in_pkt);
av_free(at->decoded_data);
av_free(at->extradata);
av_freep(&at->decoded_data);
av_freep(&at->extradata);
return 0;
}