avcodec/audiotoolboxdec: use av_freep()

This prevents leaving dangling pointers.
pull/269/head
James Almer 7 years ago
parent 3242babf64
commit f4e593f7b5
  1. 4
      libavcodec/audiotoolboxdec.c

@ -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