From 9078b40d354b1e3e8995ca781d4ccfda0044a8f4 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 16 Sep 2013 22:44:15 +0200 Subject: swresample: replace 2 av_free() by av_freep() avoids leaving stale pointers in memory Signed-off-by: Michael Niedermayer --- libswresample/swresample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libswresample/swresample.c') diff --git a/libswresample/swresample.c b/libswresample/swresample.c index cdfe5bfee5..b9a3c3d90e 100644 --- a/libswresample/swresample.c +++ b/libswresample/swresample.c @@ -468,7 +468,7 @@ int swri_realloc_audio(AudioData *a, int count){ if(a->planar) memcpy(a->ch[i], old.ch[i], a->count*a->bps); } if(!a->planar) memcpy(a->ch[0], old.ch[0], a->count*a->ch_count*a->bps); - av_free(old.data); + av_freep(&old.data); a->count= count; return 1; -- cgit v1.2.3