mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
libavcodec/tiffenc: Use av_freep() avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
98fbf8ef67
commit
bb5e148299
@ -420,7 +420,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (s->compr == TIFF_LZW)
|
if (s->compr == TIFF_LZW)
|
||||||
av_free(s->lzws);
|
av_freep(&s->lzws);
|
||||||
}
|
}
|
||||||
|
|
||||||
s->num_entries = 0;
|
s->num_entries = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user