Remove a few if (p) av_free(p) forms
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
committed by
Mans Rullgard
parent
dc75d6dbf2
commit
437fb1c87d
@@ -332,9 +332,7 @@ static void delete_state(DVBSubContext *ctx)
|
||||
ctx->region_list = region->next;
|
||||
|
||||
delete_region_display_list(ctx, region);
|
||||
if (region->pbuf)
|
||||
av_free(region->pbuf);
|
||||
|
||||
av_free(region->pbuf);
|
||||
av_free(region);
|
||||
}
|
||||
|
||||
@@ -1032,8 +1030,7 @@ static void dvbsub_parse_region_segment(AVCodecContext *avctx,
|
||||
buf += 2;
|
||||
|
||||
if (region->width * region->height != region->buf_size) {
|
||||
if (region->pbuf)
|
||||
av_free(region->pbuf);
|
||||
av_free(region->pbuf);
|
||||
|
||||
region->buf_size = region->width * region->height;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user