av_freep(&b->x); av_freep(&b->coeff);
av_freep(&b->x_coeff);
static void common_end(SnowContext *s){    int plane_index, level, orientation;    av_freep(&s->spatial_dwt_buffer);    av_freep(&s->m.me.scratchpad);        av_freep(&s->m.me.map);    av_freep(&s->m.me.score_map);     av_freep(&s->block);    for(plane_index=0; plane_index<3; plane_index++){            for(level=s->spatial_decomposition_count-1; level>=0; level--){            for(orientation=level ? 1 : 0; orientation<4; orientation++){                SubBand *b= &s->plane[plane_index].band[level][orientation];                                av_freep(&b->x);                av_freep(&b->coeff);            }        }    }}