Commit 3aa1b532 authored by Stefano Sabatini's avatar Stefano Sabatini

lavfi/hue: set to NULL freed pointers

Possibly safer.
parent 31aa5b1a
......@@ -118,8 +118,9 @@ static inline void compute_sin_and_cos(HueContext *hue)
hue->attr##_pexpr = old_##attr##_pexpr; \
return AVERROR(EINVAL); \
} else if (old_##attr##_pexpr) { \
av_free(old_##attr##_expr); \
av_freep(&old_##attr##_expr); \
av_expr_free(old_##attr##_pexpr); \
old_##attr##_pexpr = NULL; \
} \
} while (0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment