From 7102083a26f77b316b78d985c6b86f6d955910b9 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 10 Dec 2013 00:52:12 +0100 Subject: [PATCH] avcodec/libutvideodec: free coded_frame with av_frame_free() instead if av_free* Signed-off-by: Michael Niedermayer --- libavcodec/libutvideodec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libutvideodec.cpp b/libavcodec/libutvideodec.cpp index 8e6b69175d8..60dbd15fa88 100644 --- a/libavcodec/libutvideodec.cpp +++ b/libavcodec/libutvideodec.cpp @@ -174,7 +174,7 @@ static av_cold int utvideo_decode_close(AVCodecContext *avctx) UtVideoContext *utv = (UtVideoContext *)avctx->priv_data; /* Free output */ - av_freep(&avctx->coded_frame); + av_frame_free(&avctx->coded_frame); av_freep(&utv->buffer); /* Finish decoding and clean up the instance */ -- 2.39.2