Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 12 years ago
parent
commit
3017239d3a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vf_pullup.c

+ 1
- 1
libavfilter/vf_pullup.c View File

@@ -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);


Loading…
Cancel
Save