diff options
author | Clément Bœsch <ubitux@gmail.com> | 2011-02-03 02:09:36 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-02-03 01:37:55 +0000 |
commit | 437fb1c87d7b4b0730db97d0858b4f39fffff2a9 (patch) | |
tree | 1febadd59886886b0ad55bb8796a22160866bec3 /libavcodec/dvbsubdec.c | |
parent | dc75d6dbf2af3c03b33d3159e1dadccf22c076ea (diff) | |
download | ffmpeg-437fb1c87d7b4b0730db97d0858b4f39fffff2a9.tar.gz |
Remove a few if (p) av_free(p) forms
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/dvbsubdec.c')
-rw-r--r-- | libavcodec/dvbsubdec.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index 0f1e004689..fe9879822f 100644 --- a/libavcodec/dvbsubdec.c +++ b/libavcodec/dvbsubdec.c @@ -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; |