Revision 8b834ac5
libavcodec/utils.c | ||
---|---|---|
695 | 695 |
|
696 | 696 |
for (i = 0; i < sub->num_rects; i++) |
697 | 697 |
{ |
698 |
av_freep(sub->rects[i]->pict.data[0]); |
|
699 |
av_freep(sub->rects[i]->pict.data[1]); |
|
700 |
av_freep(sub->rects[i]->pict.data[2]); |
|
701 |
av_freep(sub->rects[i]->pict.data[3]); |
|
702 |
av_freep(sub->rects[i]->text); |
|
703 |
av_freep(sub->rects[i]->ass); |
|
704 |
av_freep(sub->rects[i]); |
|
698 |
av_freep(&sub->rects[i]->pict.data[0]);
|
|
699 |
av_freep(&sub->rects[i]->pict.data[1]);
|
|
700 |
av_freep(&sub->rects[i]->pict.data[2]);
|
|
701 |
av_freep(&sub->rects[i]->pict.data[3]);
|
|
702 |
av_freep(&sub->rects[i]->text);
|
|
703 |
av_freep(&sub->rects[i]->ass);
|
|
704 |
av_freep(&sub->rects[i]);
|
|
705 | 705 |
} |
706 | 706 |
|
707 |
av_freep(sub->rects); |
|
707 |
av_freep(&sub->rects);
|
|
708 | 708 |
|
709 | 709 |
memset(sub, 0, sizeof(AVSubtitle)); |
710 | 710 |
} |
Also available in: Unified diff