Bug 296457 fixing reversed null check in DrawNativeSurfaces

r+sr=shaver a=chofmann
This commit is contained in:
cbiesinger%web.de 2005-06-02 23:01:52 +00:00
Родитель 2d34133fd6
Коммит d04e90a15f
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -1887,7 +1887,7 @@ nsCanvasRenderingContext2D::DrawNativeSurfaces(nsIDrawingSurface* aBlackSurface,
// Create a temporary surface to hold the full-size image in cairo
// image format.
nsAutoArrayPtr<PRUint8> tmpBuf(new PRUint8[aSurfaceSize.width*aSurfaceSize.height*4]);
if (tmpBuf) {
if (!tmpBuf) {
aBlackSurface->Unlock();
return NS_ERROR_OUT_OF_MEMORY;
}