Remove a few if (p) av_free(p) forms

Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
Clément Bœsch
2011-02-03 02:09:36 +01:00
committed by Mans Rullgard
parent dc75d6dbf2
commit 437fb1c87d
9 changed files with 20 additions and 41 deletions

View File

@@ -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;