summaryrefslogtreecommitdiff
path: root/hw/xfree86/vgahw/vgaCmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xfree86/vgahw/vgaCmap.c')
-rw-r--r--hw/xfree86/vgahw/vgaCmap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/xfree86/vgahw/vgaCmap.c b/hw/xfree86/vgahw/vgaCmap.c
index 06eeb4ce1..dad71b93e 100644
--- a/hw/xfree86/vgahw/vgaCmap.c
+++ b/hw/xfree86/vgahw/vgaCmap.c
@@ -235,9 +235,9 @@ vgaInstallColormap(pmap)
else
entries = pmap->pVisual->ColormapEntries;
- ppix = (Pixel *)xalloc( entries * sizeof(Pixel));
- prgb = (xrgb *)xalloc( entries * sizeof(xrgb));
- defs = (xColorItem *)xalloc(entries * sizeof(xColorItem));
+ ppix = (Pixel *)malloc( entries * sizeof(Pixel));
+ prgb = (xrgb *)malloc( entries * sizeof(xrgb));
+ defs = (xColorItem *)malloc(entries * sizeof(xColorItem));
if ( oldmap != NOMAPYET)
WalkTree( pmap->pScreen, TellLostMap, &oldmap->mid);
@@ -260,9 +260,9 @@ vgaInstallColormap(pmap)
WalkTree(pmap->pScreen, TellGainedMap, &pmap->mid);
- xfree(ppix);
- xfree(prgb);
- xfree(defs);
+ free(ppix);
+ free(prgb);
+ free(defs);
}