mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 395585 - OOM problems in nsPNGEncoder.cpp - r=bbondy
This commit is contained in:
parent
1dfa6af486
commit
fd347ebe2e
@ -701,6 +701,7 @@ nsPNGEncoder::WriteCallback(png_structp png, png_bytep data,
|
||||
if (! newBuf) {
|
||||
// can't resize, just zero (this will keep us from writing more)
|
||||
PR_Free(that->mImageBuffer);
|
||||
that->mImageBuffer = nsnull;
|
||||
that->mImageBufferSize = 0;
|
||||
that->mImageBufferUsed = 0;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user