summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/xbmenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/xbmenc.c b/libavcodec/xbmenc.c
index d6657dcd08..517e569a60 100644
--- a/libavcodec/xbmenc.c
+++ b/libavcodec/xbmenc.c
@@ -69,7 +69,7 @@ static int xbm_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
static av_cold int xbm_encode_close(AVCodecContext *avctx)
{
- av_freep(&avctx->coded_frame);
+ av_frame_free(&avctx->coded_frame);
return 0;
}