aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-12-16 13:14:44 +0100
committerStefano Sabatini <stefasab@gmail.com>2012-12-16 13:16:47 +0100
commit94877aad57bdba7686ef42619c111d1c5c725520 (patch)
tree9fd7ba29cb727cf07608aaddd60cda9d41000b0d
parentdde4832b64c53a680cdf8bf4dfb1694e2b802154 (diff)
downloadffmpeg-94877aad57bdba7686ef42619c111d1c5c725520.tar.gz
lavfi/crop: free x and y parsed expression objects
Fix leak introduced in 1e5492ffe6609fa0059d1a64fb3c4d5fd285a88c.
-rw-r--r--libavfilter/vf_crop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c
index 316f21269e..1ff949327a 100644
--- a/libavfilter/vf_crop.c
+++ b/libavfilter/vf_crop.c
@@ -122,6 +122,9 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
static av_cold void uninit(AVFilterContext *ctx)
{
CropContext *crop = ctx->priv;
+
+ av_expr_free(crop->x_pexpr); crop->x_pexpr = NULL;
+ av_expr_free(crop->y_pexpr); crop->y_pexpr = NULL;
av_opt_free(crop);
}