Browse Source

avfilter_unref_buffer: favor av_freep()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.8
Michael Niedermayer 14 years ago
parent
commit
fa3eddc011
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavfilter/avfilter.c

+ 2
- 2
libavfilter/avfilter.c View File

@@ -75,8 +75,8 @@ void avfilter_unref_buffer(AVFilterBufferRef *ref)
return;
if (!(--ref->buf->refcount))
ref->buf->free(ref->buf);
av_free(ref->video);
av_free(ref->audio);
av_freep(&ref->video);
av_freep(&ref->audio);
av_free(ref);
}



Loading…
Cancel
Save