https://bugs.winehq.org/show_bug.cgi?id=51765
--- Comment #6 from Konstantin Kharlamov hi-angel@yandex.ru --- (In reply to Konstantin Kharlamov from comment #5)
I reduced problem down to X11 function call `XFreeGC( gdi_display, physDev->gc );`, that is something
No idea though how would it be possible to not have resources to free resources. What is odd is that if I comment out the line, the next function XCreateGC( gdi_display, physDev->drawable, 0, NULL ) fails with the same error.