Commit 3017239d authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_pullup: add comment to explain memset(0)

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a44409e6
......@@ -137,7 +137,7 @@ static void free_field_queue(PullupField *head)
av_free(f->combs);
av_free(f->vars);
next = f->next;
memset(f, 0, sizeof(*f));
memset(f, 0, sizeof(*f)); // clear all pointers to avoid stale ones
av_free(f);
f = next;
} while (f != head);
......
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