aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <clement@stupeflix.com>2015-02-27 14:18:53 +0100
committerClément Bœsch <clement@stupeflix.com>2015-02-27 14:18:53 +0100
commit3e0ae19f863fb4aea70529ea359148791e02fe3e (patch)
treef8dadc80df2b8234a4b1616cf33e45c9838860ca
parentd490b26fcb1b36c91099537a08d9a217d4782451 (diff)
downloadffmpeg-3e0ae19f863fb4aea70529ea359148791e02fe3e.tar.gz
avfilter/palettegen: fix frame mem leak
-rw-r--r--libavfilter/vf_palettegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_palettegen.c b/libavfilter/vf_palettegen.c
index fa8cc12a3c..8b08140283 100644
--- a/libavfilter/vf_palettegen.c
+++ b/libavfilter/vf_palettegen.c
@@ -531,7 +531,7 @@ static av_cold void uninit(AVFilterContext *ctx)
for (i = 0; i < HIST_SIZE; i++)
av_freep(&s->histogram[i].entries);
av_freep(&s->refs);
- av_freep(&s->prev_frame);
+ av_frame_free(&s->prev_frame);
}
static const AVFilterPad palettegen_inputs[] = {