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
Родитель 9dbd7abfed
Коммит 268142e62e
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -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 =