Bug 412378 - crash in gfxPlatformGtk::CreateOffscreenSurface() when using xpcshell. r=stuart, a=schrep

This commit is contained in:
dolske@mozilla.com 2008-01-18 15:50:24 -08:00
parent 1f69c1af69
commit 5317da7abc

View File

@ -137,6 +137,9 @@ gfxPlatformGtk::CreateOffscreenSurface(const gfxIntSize& size,
// in more context, including the display and/or target surface type that
// we should try to match
Display* display = GDK_DISPLAY();
if (!display)
return nsnull;
if (!UseGlitz()) {
GdkPixmap* pixmap = nsnull;
XRenderPictFormat* xrenderFormat =