Revision ba9c4db5

View differences:

libavcodec/flashsv2enc.c
123 123

  
124 124
static av_cold void cleanup(FlashSV2Context * s)
125 125
{
126
        av_free(s->encbuffer);
127
        av_free(s->keybuffer);
128
        av_free(s->databuffer);
129
        av_free(s->current_frame);
130
        av_free(s->key_frame);
131

  
132
        av_free(s->frame_blocks);
133
        av_free(s->key_blocks);
126
    av_freep(&s->encbuffer);
127
    av_freep(&s->keybuffer);
128
    av_freep(&s->databuffer);
129
    av_freep(&s->current_frame);
130
    av_freep(&s->key_frame);
131

  
132
    av_freep(&s->frame_blocks);
133
    av_freep(&s->key_blocks);
134 134
}
135 135

  
136 136
static void init_blocks(FlashSV2Context * s, Block * blocks,

Also available in: Unified diff