avcodec/audiotoolboxdec: use av_freep()
This prevents leaving dangling pointers.
This commit is contained in:
parent
3242babf64
commit
f4e593f7b5
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue