diff --git a/gfx/layers/basic/BasicLayerManager.cpp b/gfx/layers/basic/BasicLayerManager.cpp index 2388af5a811..54ced4ca105 100644 --- a/gfx/layers/basic/BasicLayerManager.cpp +++ b/gfx/layers/basic/BasicLayerManager.cpp @@ -617,8 +617,7 @@ Transform3D(gfxASurface* aSource, gfxContext* aDest, // Create a surface the size of the transformed object. nsRefPtr dest = aDest->CurrentSurface(); - nsRefPtr destImage = dest->GetAsImageSurface(); - destImage = nsnull; + nsRefPtr destImage; gfxPoint offset; bool blitComplete; if (!destImage || aDontBlit || !aDest->ClipContainsRect(destRect)) {