Browse Source

avcodec/audiotoolboxdec: use av_freep()

This prevents leaving dangling pointers.
tags/n3.4
James Almer 7 years ago
parent
commit
f4e593f7b5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/audiotoolboxdec.c

+ 2
- 2
libavcodec/audiotoolboxdec.c 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;
}



Loading…
Cancel
Save