lavfi/hue: set to NULL freed pointers
Possibly safer.
This commit is contained in:
parent
31aa5b1a78
commit
3aa1b53256
@ -118,8 +118,9 @@ static inline void compute_sin_and_cos(HueContext *hue)
|
|||||||
hue->attr##_pexpr = old_##attr##_pexpr; \
|
hue->attr##_pexpr = old_##attr##_pexpr; \
|
||||||
return AVERROR(EINVAL); \
|
return AVERROR(EINVAL); \
|
||||||
} else if (old_##attr##_pexpr) { \
|
} else if (old_##attr##_pexpr) { \
|
||||||
av_free(old_##attr##_expr); \
|
av_freep(&old_##attr##_expr); \
|
||||||
av_expr_free(old_##attr##_pexpr); \
|
av_expr_free(old_##attr##_pexpr); \
|
||||||
|
old_##attr##_pexpr = NULL; \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user