mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_pullup: add comment to explain memset(0)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a44409e692
commit
3017239d3a
|
@ -137,7 +137,7 @@ static void free_field_queue(PullupField *head)
|
||||||
av_free(f->combs);
|
av_free(f->combs);
|
||||||
av_free(f->vars);
|
av_free(f->vars);
|
||||||
next = f->next;
|
next = f->next;
|
||||||
memset(f, 0, sizeof(*f));
|
memset(f, 0, sizeof(*f)); // clear all pointers to avoid stale ones
|
||||||
av_free(f);
|
av_free(f);
|
||||||
f = next;
|
f = next;
|
||||||
} while (f != head);
|
} while (f != head);
|
||||||
|
|
Loading…
Reference in New Issue