summaryrefslogtreecommitdiff
path: root/src/lg_driver.c
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-10-17 01:42:00 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-10-17 01:42:00 -0700
commit80f60e4af0e0b124335c5a09cad0b1eb42583536 (patch)
tree7abed526380f140db6ccacce4c10c24b75b8dc4b /src/lg_driver.c
parent3e5ebc4c1b9c2f751e50415b0d1bbb670c659eac (diff)
Use malloc/calloc/realloc/free directly
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src/lg_driver.c')
-rw-r--r--src/lg_driver.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lg_driver.c b/src/lg_driver.c
index 718454a..0f9f1f6 100644
--- a/src/lg_driver.c
+++ b/src/lg_driver.c
@@ -258,7 +258,7 @@ LgFreeRec(ScrnInfoPtr pScrn)
{
if (pScrn->driverPrivate == NULL)
return;
- xfree(pScrn->driverPrivate);
+ free(pScrn->driverPrivate);
pScrn->driverPrivate = NULL;
}
@@ -453,7 +453,7 @@ LgPreInit(ScrnInfoPtr pScrn, int flags)
xf86CollectOptions(pScrn, NULL);
/* Process the options */
- if (!(pCir->Options = xalloc(sizeof(LgOptions))))
+ if (!(pCir->Options = malloc(sizeof(LgOptions))))
return FALSE;
memcpy(pCir->Options, LgOptions, sizeof(LgOptions));
xf86ProcessOptions(pScrn->scrnIndex, pScrn->options, pCir->Options);
@@ -1313,7 +1313,7 @@ LgScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
if(pCir->shadowFB) {
pCir->ShadowPitch = BitmapBytePad(pScrn->bitsPerPixel * width);
- pCir->ShadowPtr = xalloc(pCir->ShadowPitch * height);
+ pCir->ShadowPtr = malloc(pCir->ShadowPitch * height);
displayWidth = pCir->ShadowPitch / (pScrn->bitsPerPixel >> 3);
FbBase = pCir->ShadowPtr;
} else {
@@ -1616,7 +1616,7 @@ LgCloseScreen(int scrnIndex, ScreenPtr pScreen)
xf86DestroyCursorInfoRec(pCir->CursorInfoRec);
pCir->CursorInfoRec = NULL;
if (pCir->DGAModes)
- xfree(pCir->DGAModes);
+ free(pCir->DGAModes);
pCir->DGAnumModes = 0;
pCir->DGAModes = NULL;