b=329680, crash in gfxContext::SetSource (ensure we have an image surface before optimizing in nsThebesImage), r=pav

This commit is contained in:
vladimir%pobox.com 2006-03-08 00:28:19 +00:00
parent a0ed51d33e
commit 0e4cb03112

View File

@ -201,6 +201,7 @@ nsresult
nsThebesImage::Optimize(nsIDeviceContext* aContext)
{
UpdateFromLockedData();
EnsureImageSurface();
if (!mOptSurface) {
gfxASurface::gfxImageFormat real_format;