Revision 5968b396

View differences:

libavcodec/xsubdec.c
66 66
        sub->rects = av_mallocz(sizeof(AVSubtitleRect));
67 67
        sub->num_rects = 1;
68 68
    }
69
    av_freep(sub->rects[0].bitmap);
69
    av_freep(&sub->rects[0].bitmap);
70 70
    sub->rects[0].x = x; sub->rects[0].y = y;
71 71
    sub->rects[0].w = w; sub->rects[0].h = h;
72 72
    sub->rects[0].linesize = w;

Also available in: Unified diff