diff options
-rw-r--r-- | src/i830_exa.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/i830_exa.c b/src/i830_exa.c index 6db94d97..59c2d51d 100644 --- a/src/i830_exa.c +++ b/src/i830_exa.c @@ -362,7 +362,8 @@ I830EXAInit(ScreenPtr pScreen) pI830->noAccel = TRUE; return FALSE; } - + memset(pI830->EXADriverPtr, 0, sizeof(*pI830->EXADriverPtr)); + pI830->bufferOffset = 0; pI830->EXADriverPtr->exa_major = 2; pI830->EXADriverPtr->exa_minor = 0; @@ -409,6 +410,7 @@ I830EXAInit(ScreenPtr pScreen) #endif if(!exaDriverInit(pScreen, pI830->EXADriverPtr)) { + xfree(pI830->EXADriverPtr); pI830->noAccel = TRUE; return FALSE; } |