libavcodec/tiffenc: Use av_freep() avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-11-18 11:33:00 +01:00
parent 98fbf8ef67
commit bb5e148299

View File

@ -420,7 +420,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
}
}
if (s->compr == TIFF_LZW)
av_free(s->lzws);
av_freep(&s->lzws);
}
s->num_entries = 0;