lavfi/crop: free x and y parsed expression objects

Fix leak introduced in 1e5492ffe6609fa0059d1a64fb3c4d5fd285a88c.
This commit is contained in:
Stefano Sabatini 2012-12-16 13:14:44 +01:00
parent dde4832b64
commit 94877aad57

View File

@ -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);
}