From d5ba19e611b0b25ec249f7db2b99594519db99da Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 18 Jul 2014 04:57:00 +0200 Subject: [PATCH] avcodec/a64multienc use av_freep() Signed-off-by: Michael Niedermayer --- libavcodec/a64multienc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/a64multienc.c b/libavcodec/a64multienc.c index 9760298c24..fc00d3fc62 100644 --- a/libavcodec/a64multienc.c +++ b/libavcodec/a64multienc.c @@ -187,11 +187,11 @@ static av_cold int a64multi_close_encoder(AVCodecContext *avctx) { A64Context *c = avctx->priv_data; av_frame_free(&avctx->coded_frame); - av_free(c->mc_meta_charset); - av_free(c->mc_best_cb); - av_free(c->mc_charset); - av_free(c->mc_charmap); - av_free(c->mc_colram); + av_freep(&c->mc_meta_charset); + av_freep(&c->mc_best_cb); + av_freep(&c->mc_charset); + av_freep(&c->mc_charmap); + av_freep(&c->mc_colram); return 0; }