mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Do not try to free memory that was never allocated (partial revert of r20231).
Originally committed as revision 20252 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0b7f39c9d4
commit
45fc24a005
@ -219,7 +219,6 @@ static av_cold int ir2_decode_end(AVCodecContext *avctx){
|
||||
|
||||
if (pic->data[0])
|
||||
avctx->release_buffer(avctx, pic);
|
||||
av_freep(&ic->picture);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -281,7 +281,6 @@ static av_cold int decode_end(AVCodecContext *avctx){
|
||||
|
||||
if (pic->data[0])
|
||||
avctx->release_buffer(avctx, pic);
|
||||
av_freep(&l->pic);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -146,7 +146,6 @@ static av_cold int decode_end(AVCodecContext *avctx){
|
||||
|
||||
if (pic->data[0])
|
||||
avctx->release_buffer(avctx, pic);
|
||||
av_freep(&a->pic);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -866,7 +866,6 @@ static av_cold int decode_end(AVCodecContext *avctx){
|
||||
|
||||
if (pic->data[0])
|
||||
avctx->release_buffer(avctx, pic);
|
||||
av_freep(&l->pic);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -61,7 +61,6 @@ static av_cold int ulti_decode_end(AVCodecContext *avctx){
|
||||
|
||||
if (pic->data[0])
|
||||
avctx->release_buffer(avctx, pic);
|
||||
av_freep(&s->frame);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -149,7 +149,6 @@ static av_cold int decode_end(AVCodecContext *avctx){
|
||||
|
||||
if (pic->data[0])
|
||||
avctx->release_buffer(avctx, pic);
|
||||
av_freep(&l->pic);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -134,7 +134,6 @@ static av_cold int decode_end(AVCodecContext *avctx){
|
||||
|
||||
if (pic->data[0])
|
||||
avctx->release_buffer(avctx, pic);
|
||||
av_freep(&a->pic);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user