avfilter/vf_pullup: add comment to explain memset(0)
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 26 Mar 2014 19:05:57 +0000 (20:05 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 26 Mar 2014 19:05:57 +0000 (20:05 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_pullup.c

index 73ffa68..9b9064c 100644 (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);