summaryrefslogtreecommitdiff
path: root/libavcodec/libxvidff.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 /libavcodec/libxvidff.c
parentdc75d6dbf2af3c03b33d3159e1dadccf22c076ea (diff)
Remove a few if (p) av_free(p) forms
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/libxvidff.c')
-rw-r--r--libavcodec/libxvidff.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c
index d95ddee8d7..771fc2be64 100644
--- a/libavcodec/libxvidff.c
+++ b/libavcodec/libxvidff.c
@@ -533,12 +533,9 @@ static av_cold int xvid_encode_close(AVCodecContext *avctx) {
av_free(x->twopassbuffer);
av_free(x->old_twopassbuffer);
}
- if( x->twopassfile != NULL )
- av_free(x->twopassfile);
- if( x->intra_matrix != NULL )
- av_free(x->intra_matrix);
- if( x->inter_matrix != NULL )
- av_free(x->inter_matrix);
+ av_free(x->twopassfile);
+ av_free(x->intra_matrix);
+ av_free(x->inter_matrix);
return 0;
}