Browse code

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2014/03/27 04:05:57
Showing 1 changed files
... ...
@@ -137,7 +137,7 @@ static void free_field_queue(PullupField *head)
137 137
         av_free(f->combs);
138 138
         av_free(f->vars);
139 139
         next = f->next;
140
-        memset(f, 0, sizeof(*f));
140
+        memset(f, 0, sizeof(*f)); // clear all pointers to avoid stale ones
141 141
         av_free(f);
142 142
         f = next;
143 143
     } while (f != head);