Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-09-21 14:41:00 +0400
committerStefano Sabatini <stefasab@gmail.com>2012-09-21 14:44:44 +0400
commit3aa1b532561e1b7ad066b85b2fd2d6fe44f0ed10 (patch)
treebca3ed5cbb85af76d82bf2747e23e1c9f8efb213 /libavfilter/vf_hue.c
parent31aa5b1a783ec91063eec370026a29c546d4ca6e (diff)
lavfi/hue: set to NULL freed pointers
Possibly safer.
Diffstat (limited to 'libavfilter/vf_hue.c')
-rw-r--r--libavfilter/vf_hue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c
index cfd71b1f89..e02a216b90 100644
--- a/libavfilter/vf_hue.c
+++ b/libavfilter/vf_hue.c
@@ -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)