Revision e31a7441 libavcodec/dvbsubdec.c

View differences:

libavcodec/dvbsubdec.c
332 332
        ctx->region_list = region->next;
333 333

  
334 334
        delete_region_display_list(ctx, region);
335
        if (region->pbuf)
336
            av_free(region->pbuf);
337

  
335
        av_free(region->pbuf);
338 336
        av_free(region);
339 337
    }
340 338

  
......
1032 1030
    buf += 2;
1033 1031

  
1034 1032
    if (region->width * region->height != region->buf_size) {
1035
        if (region->pbuf)
1036
            av_free(region->pbuf);
1033
        av_free(region->pbuf);
1037 1034

  
1038 1035
        region->buf_size = region->width * region->height;
1039 1036

  

Also available in: Unified diff