diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-06-03 21:36:03 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-06-05 16:13:12 +0930 |
commit | 6f1d5147cb394b7c83c4c1447c78890fa2b40a45 (patch) | |
tree | d14dc8665e208dcb8e94424c1e344017c904bcf6 /hw/dmx/dmxgc.c | |
parent | d10ba4591a599a317093ffcbdd7cece11ab6de26 (diff) |
dmx: fix a segfault caused by GC devPrivates never being initalised.
Diffstat (limited to 'hw/dmx/dmxgc.c')
-rw-r--r-- | hw/dmx/dmxgc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/dmx/dmxgc.c b/hw/dmx/dmxgc.c index ce1730cff..eb21d3c60 100644 --- a/hw/dmx/dmxgc.c +++ b/hw/dmx/dmxgc.c @@ -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; } |