Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2006-09-09 15:40:41 +0400
committerKostya Shishkov <kostya.shishkov@gmail.com>2006-09-09 15:40:41 +0400
commit34a8dcd031d637273cdea021e5a79cf720c4c51c (patch)
tree40a2a8301286e80e82e982d5ebbaf7f31ba4b9ed /libavcodec/kmvc.c
parent767516533df0f68fe2906990b6cf0d7d3061495d (diff)
Drop unneeded checks before av_free() and change to av_freep() where it's more suitable.
Originally committed as revision 6212 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/kmvc.c')
-rw-r--r--libavcodec/kmvc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/kmvc.c b/libavcodec/kmvc.c
index 036efa5593..9623173fc1 100644
--- a/libavcodec/kmvc.c
+++ b/libavcodec/kmvc.c
@@ -395,10 +395,8 @@ static int decode_end(AVCodecContext * avctx)
{
KmvcContext *const c = (KmvcContext *) avctx->priv_data;
- if (c->frm0)
- av_free(c->frm0);
- if (c->frm1)
- av_free(c->frm1);
+ av_freep(&c->frm0);
+ av_freep(&c->frm1);
if (c->pic.data[0])
avctx->release_buffer(avctx, &c->pic);