зеркало из https://github.com/mozilla/pjs.git
Bug 395585 - OOM problems in nsPNGEncoder.cpp - r=bbondy
This commit is contained in:
Родитель
d206ed0834
Коммит
f4e512a91a
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче