aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/flashsv2enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-04-29 02:41:13 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-04-29 02:41:13 +0200
commitba9c4db59a82e7aa70a61782c3e3e85eaae7dd72 (patch)
treeff1b46fa81a8c2ae7b86366fed262a5804ec2709 /libavcodec/flashsv2enc.c
parentf6a5edb64c004b45ae063e85652e3213731b42b6 (diff)
downloadffmpeg-ba9c4db59a82e7aa70a61782c3e3e85eaae7dd72.tar.gz
flashsv2enc: use av_freep()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/flashsv2enc.c')
-rw-r--r--libavcodec/flashsv2enc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/flashsv2enc.c b/libavcodec/flashsv2enc.c
index 44c9bc68ca..3fd716f692 100644
--- a/libavcodec/flashsv2enc.c
+++ b/libavcodec/flashsv2enc.c
@@ -123,14 +123,14 @@ typedef struct FlashSV2Context {
static av_cold void cleanup(FlashSV2Context * s)
{
- av_free(s->encbuffer);
- av_free(s->keybuffer);
- av_free(s->databuffer);
- av_free(s->current_frame);
- av_free(s->key_frame);
-
- av_free(s->frame_blocks);
- av_free(s->key_blocks);
+ av_freep(&s->encbuffer);
+ av_freep(&s->keybuffer);
+ av_freep(&s->databuffer);
+ av_freep(&s->current_frame);
+ av_freep(&s->key_frame);
+
+ av_freep(&s->frame_blocks);
+ av_freep(&s->key_blocks);
}
static void init_blocks(FlashSV2Context * s, Block * blocks,