diff options
Diffstat (limited to 'fb/fbcmap.c')
-rw-r--r-- | fb/fbcmap.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fb/fbcmap.c b/fb/fbcmap.c index b775bc335..ce6fcd53d 100644 --- a/fb/fbcmap.c +++ b/fb/fbcmap.c @@ -388,7 +388,7 @@ fbSetVisualTypesAndMasks (int depth, int visuals, int bitsPerRGB, { fbVisualsPtr new, *prev, v; - new = (fbVisualsPtr) xalloc (sizeof *new); + new = (fbVisualsPtr) malloc(sizeof *new); if (!new) return FALSE; if (!redMask || !greenMask || !blueMask) @@ -485,12 +485,12 @@ fbInitVisuals (VisualPtr *visualp, ndepth++; nvisual += visuals->count; } - depth = (DepthPtr) xalloc (ndepth * sizeof (DepthRec)); - visual = (VisualPtr) xalloc (nvisual * sizeof (VisualRec)); + depth = (DepthPtr) malloc(ndepth * sizeof (DepthRec)); + visual = (VisualPtr) malloc(nvisual * sizeof (VisualRec)); if (!depth || !visual) { - xfree (depth); - xfree (visual); + free(depth); + free(visual); return FALSE; } *depthp = depth; @@ -506,7 +506,7 @@ fbInitVisuals (VisualPtr *visualp, vid = NULL; if (nvtype) { - vid = (VisualID *) xalloc (nvtype * sizeof (VisualID)); + vid = (VisualID *) malloc(nvtype * sizeof (VisualID)); if (!vid) return FALSE; } @@ -547,7 +547,7 @@ fbInitVisuals (VisualPtr *visualp, vid++; visual++; } - xfree (visuals); + free(visuals); } fbVisuals = NULL; visual = *visualp; |