]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/truemotion2: Replace av_free() by av_freep() in AVCodec.close
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 27 Sep 2020 12:30:18 +0000 (14:30 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 6 Nov 2020 12:57:49 +0000 (13:57 +0100)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/truemotion2.c

index a1d4eea340035abf5d1a830f47eb54a53f52db7f..51266e5744c1fd230cd65018d4f0d8a62abb933d 100644 (file)
@@ -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) {