mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 412378 - crash in gfxPlatformGtk::CreateOffscreenSurface() when using xpcshell. r=stuart, a=schrep
This commit is contained in:
parent
1f69c1af69
commit
5317da7abc
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user