$subj
From c104a6e90226eaa253aeba471c8859e0da922da7 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <[email protected]>
Date: Mon, 11 Apr 2011 11:49:07 +0200
Subject: [PATCH] oggdec: use av_freep() instead of av_free()
 Signed-off-by: Michael Niedermayer <[email protected]>

---
 libavformat/oggdec.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index e32f802..83ae9bd 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -247,8 +247,8 @@ ogg_read_page (AVFormatContext * s, int *str)
                 int n;
 
                 for (n = 0; n < ogg->nstreams; n++) {
-                    av_free(ogg->streams[n].buf);
-                    av_free(ogg->streams[n].private);
+                    av_freep(&ogg->streams[n].buf);
+                    av_freep(&ogg->streams[n].private);
                 }
                 ogg->curidx   = -1;
                 ogg->nstreams = 0;
-- 
1.7.2.5

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to