dmx: fix a segfault caused by GC devPrivates never being initalised.

This commit is contained in:
Peter Hutterer 2008-06-03 21:36:03 +09:30
parent d10ba4591a
commit 6f1d5147cb

View File

@ -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;
}