OSDN Git Service

Do not try to free memory that was never allocated (partial revert of r20231).
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Fri, 16 Oct 2009 15:16:59 +0000 (15:16 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Fri, 16 Oct 2009 15:16:59 +0000 (15:16 +0000)
Originally committed as revision 20252 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/indeo2.c
libavcodec/loco.c
libavcodec/qdrw.c
libavcodec/truemotion2.c
libavcodec/ulti.c
libavcodec/wnv1.c
libavcodec/xl.c

index 87d1c90..52aede1 100644 (file)
@@ -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;
 }
index 9a01810..57fba82 100644 (file)
@@ -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;
 }
index ae8a71a..f0c0350 100644 (file)
@@ -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;
 }
index d73c88b..44b89e7 100644 (file)
@@ -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;
 }
index a5aec1a..12dc6ac 100644 (file)
@@ -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;
 }
index 9f13fd5..9a5a77f 100644 (file)
@@ -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;
 }
index 277e92a..2a5110c 100644 (file)
@@ -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;
 }