mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
dmx: fix a segfault caused by GC devPrivates never being initalised.
This commit is contained in:
@@ -85,6 +85,8 @@ static GCOps dmxGCOps = {
|
||||
/** Initialize the GC on \a pScreen */
|
||||
Bool dmxInitGC(ScreenPtr pScreen)
|
||||
{
|
||||
if (!dixRequestPrivate(dmxGCPrivateKey, sizeof(dmxGCPrivRec)))
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user