Skip to content

Commit eaf79fa

Browse files
committed
Fix the cleanup discovered from a crash on Windows. Thanks @cedrik
Fuoco! Signed-off-by: Dean P. Macri <dean.p.macri@gmail.com>
1 parent 0b2ccef commit eaf79fa

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/lib/image/MovieFFMpeg/AppleProRes.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct AppleProResContext
2828
{
2929
if (prpixbuf.baseAddr)
3030
{
31-
av_freep(prpixbuf.baseAddr);
31+
av_free(prpixbuf.baseAddr);
3232
}
3333
if (prdecoder)
3434
{
@@ -44,6 +44,14 @@ struct AppleProResContext
4444
{
4545
return *this;
4646
}
47+
if (prpixbuf.baseAddr)
48+
{
49+
av_free(prpixbuf.baseAddr);
50+
}
51+
if (prdecoder)
52+
{
53+
PRCloseDecoder(prdecoder);
54+
}
4755
pixfmt = other.pixfmt;
4856
avPixelFormat = other.avPixelFormat;
4957
clearPRPixBuf();

0 commit comments

Comments
 (0)