This commit is contained in:
waterson%netscape.com 2000-09-20 06:40:22 +00:00
Родитель 7dc55680e8
Коммит 5e7b70af9e
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -185,7 +185,7 @@ nsImageMac::Init(PRInt32 aWidth, PRInt32 aHeight, PRInt32 aDepth, nsMaskRequirem
if (err != noErr) if (err != noErr)
{ {
NS_WARNING("GWorld allocation failed"); NS_WARNING("GWorld allocation failed");
nsMemory::HeapMinimize(); nsMemory::HeapMinimize(PR_FALSE);
return NS_ERROR_OUT_OF_MEMORY; return NS_ERROR_OUT_OF_MEMORY;
} }
@ -209,7 +209,7 @@ nsImageMac::Init(PRInt32 aWidth, PRInt32 aHeight, PRInt32 aDepth, nsMaskRequirem
err = AllocateGWorld(mAlphaDepth, nsnull, bounds, &mAlphaGWorld); err = AllocateGWorld(mAlphaDepth, nsnull, bounds, &mAlphaGWorld);
if (err != noErr) if (err != noErr)
{ {
nsMemory::HeapMinimize(); nsMemory::HeapMinimize(PR_FALSE);
return NS_ERROR_OUT_OF_MEMORY; return NS_ERROR_OUT_OF_MEMORY;
} }
break; break;
@ -227,7 +227,7 @@ nsImageMac::Init(PRInt32 aWidth, PRInt32 aHeight, PRInt32 aDepth, nsMaskRequirem
err = AllocateGWorld(mAlphaDepth, grayRamp, bounds, &mAlphaGWorld); err = AllocateGWorld(mAlphaDepth, grayRamp, bounds, &mAlphaGWorld);
if (err != noErr) if (err != noErr)
{ {
nsMemory::HeapMinimize(); nsMemory::HeapMinimize(PR_FALSE);
return NS_ERROR_OUT_OF_MEMORY; return NS_ERROR_OUT_OF_MEMORY;
} }