mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-04 21:08:13 +02:00
dmx: fix a segfault caused by GC devPrivates never being initalised.
This commit is contained in:
parent
d10ba4591a
commit
6f1d5147cb
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue