aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/smacker.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-02-03 02:09:36 +0100
committerMans Rullgard <mans@mansr.com>2011-02-03 01:37:55 +0000
commit437fb1c87d7b4b0730db97d0858b4f39fffff2a9 (patch)
tree1febadd59886886b0ad55bb8796a22160866bec3 /libavformat/smacker.c
parentdc75d6dbf2af3c03b33d3159e1dadccf22c076ea (diff)
downloadffmpeg-437fb1c87d7b4b0730db97d0858b4f39fffff2a9.tar.gz
Remove a few if (p) av_free(p) forms
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavformat/smacker.c')
-rw-r--r--libavformat/smacker.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libavformat/smacker.c b/libavformat/smacker.c
index 71a968eed7..92da91e81e 100644
--- a/libavformat/smacker.c
+++ b/libavformat/smacker.c
@@ -334,12 +334,9 @@ static int smacker_read_close(AVFormatContext *s)
int i;
for(i = 0; i < 7; i++)
- if(smk->bufs[i])
- av_free(smk->bufs[i]);
- if(smk->frm_size)
- av_free(smk->frm_size);
- if(smk->frm_flags)
- av_free(smk->frm_flags);
+ av_free(smk->bufs[i]);
+ av_free(smk->frm_size);
+ av_free(smk->frm_flags);
return 0;
}