aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-27 14:30:18 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-11-06 13:57:49 +0100
commit9eb22ca804c328e52759d93fa8196b58ad76b205 (patch)
treedd88a979f47ba5cf6de90dd080864530a9d4d91e
parent992adc8aaff5ac4b146c4f6bd633870c9ba96ea0 (diff)
downloadffmpeg-9eb22ca804c328e52759d93fa8196b58ad76b205.tar.gz
avcodec/truemotion2: Replace av_free() by av_freep() in AVCodec.close
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r--libavcodec/truemotion2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/truemotion2.c b/libavcodec/truemotion2.c
index a1d4eea340..51266e5744 100644
--- a/libavcodec/truemotion2.c
+++ b/libavcodec/truemotion2.c
@@ -1016,8 +1016,8 @@ static av_cold int decode_end(AVCodecContext *avctx)
TM2Context * const l = avctx->priv_data;
int i;
- av_free(l->last);
- av_free(l->clast);
+ av_freep(&l->last);
+ av_freep(&l->clast);
for (i = 0; i < TM2_NUM_STREAMS; i++)
av_freep(&l->tokens[i]);
if (l->Y1) {