[FFmpeg-cvslog] lavfi/crop: free x and y parsed expression objects
Stefano Sabatini
git at videolan.org
Sun Dec 16 13:20:15 CET 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sun Dec 16 13:14:44 2012 +0100| [94877aad57bdba7686ef42619c111d1c5c725520] | committer: Stefano Sabatini
lavfi/crop: free x and y parsed expression objects
Fix leak introduced in 1e5492ffe6609fa0059d1a64fb3c4d5fd285a88c.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=94877aad57bdba7686ef42619c111d1c5c725520
---
libavfilter/vf_crop.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c
index 316f212..1ff9493 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);
}
More information about the ffmpeg-cvslog
mailing list