@@ -85,7 +85,7 @@ _gl_context_modes_destroy(__GLcontextModes * modes)
85
85
while (modes != NULL ) {
86
86
__GLcontextModes * const next = modes -> next ;
87
87
88
- Xfree (modes );
88
+ free (modes );
89
89
modes = next ;
90
90
}
91
91
}
@@ -101,7 +101,7 @@ _gl_context_modes_create(unsigned count, size_t minimum_size)
101
101
102
102
next = & base ;
103
103
for (i = 0 ; i < count ; i ++ ) {
104
- * next = (__GLcontextModes * ) Xmalloc (size );
104
+ * next = (__GLcontextModes * ) malloc (size );
105
105
if (* next == NULL ) {
106
106
_gl_context_modes_destroy (base );
107
107
base = NULL ;
@@ -165,7 +165,7 @@ __glXQueryServerString(Display * dpy, int opcode, CARD32 screen, CARD32 name)
165
165
length = reply .length * 4 ;
166
166
numbytes = reply .size ;
167
167
168
- buf = (char * ) Xmalloc (numbytes );
168
+ buf = (char * ) malloc (numbytes );
169
169
if (buf != NULL ) {
170
170
_XRead (dpy , buf , numbytes );
171
171
length -= numbytes ;
@@ -200,9 +200,9 @@ FreeScreenConfigs(__GLXdisplayPrivate * priv)
200
200
_gl_context_modes_destroy (psc -> configs );
201
201
psc -> configs = NULL ; /* NOTE: just for paranoia */
202
202
}
203
- Xfree ((char * ) psc -> serverGLXexts );
203
+ free ((char * ) psc -> serverGLXexts );
204
204
}
205
- XFree ((char * ) priv -> screenConfigs );
205
+ free ((char * ) priv -> screenConfigs );
206
206
priv -> screenConfigs = NULL ;
207
207
}
208
208
@@ -218,9 +218,9 @@ __glXFreeDisplayPrivate(XExtData * extension)
218
218
priv = (__GLXdisplayPrivate * ) extension -> private_data ;
219
219
FreeScreenConfigs (priv );
220
220
if (priv -> serverGLXversion )
221
- Xfree ((char * ) priv -> serverGLXversion );
221
+ free ((char * ) priv -> serverGLXversion );
222
222
223
- Xfree ((char * ) priv );
223
+ free ((char * ) priv );
224
224
return 0 ;
225
225
}
226
226
@@ -491,7 +491,7 @@ createConfigsFromProperties(Display * dpy, int nvisuals, int nprops,
491
491
if (prop_size <= sizeof (buf ))
492
492
props = buf ;
493
493
else
494
- props = Xmalloc (prop_size );
494
+ props = malloc (prop_size );
495
495
496
496
/* Read each config structure and convert it into our format */
497
497
m = modes ;
@@ -506,7 +506,7 @@ createConfigsFromProperties(Display * dpy, int nvisuals, int nprops,
506
506
}
507
507
508
508
if (props != buf )
509
- Xfree (props );
509
+ free (props );
510
510
511
511
return modes ;
512
512
}
@@ -568,7 +568,7 @@ AllocAndFetchScreenConfigs(Display * dpy, __GLXdisplayPrivate * priv)
568
568
** First allocate memory for the array of per screen configs.
569
569
*/
570
570
screens = ScreenCount (dpy );
571
- priv -> screenConfigs = Xmalloc (screens * sizeof * priv -> screenConfigs );
571
+ priv -> screenConfigs = malloc (screens * sizeof * priv -> screenConfigs );
572
572
if (!priv -> screenConfigs ) {
573
573
return GL_FALSE ;
574
574
}
@@ -581,7 +581,7 @@ AllocAndFetchScreenConfigs(Display * dpy, __GLXdisplayPrivate * priv)
581
581
}
582
582
583
583
for (i = 0 ; i < screens ; i ++ ) {
584
- psc = Xcalloc (1 , sizeof * psc );
584
+ psc = calloc (1 , sizeof * psc );
585
585
if (!psc )
586
586
return GL_FALSE ;
587
587
getFBConfigs (psc , priv , i );
@@ -619,12 +619,12 @@ __glXInitialize(Display * dpy)
619
619
/*
620
620
** Allocate memory for all the pieces needed for this buffer.
621
621
*/
622
- private = (XExtData * ) Xmalloc (sizeof (XExtData ));
622
+ private = (XExtData * ) malloc (sizeof (XExtData ));
623
623
if (!private )
624
624
return NULL ;
625
- dpyPriv = (__GLXdisplayPrivate * ) Xcalloc (1 , sizeof (__GLXdisplayPrivate ));
625
+ dpyPriv = (__GLXdisplayPrivate * ) calloc (1 , sizeof (__GLXdisplayPrivate ));
626
626
if (!dpyPriv ) {
627
- Xfree (private );
627
+ free (private );
628
628
return NULL ;
629
629
}
630
630
@@ -636,8 +636,8 @@ __glXInitialize(Display * dpy)
636
636
dpyPriv -> dpy = dpy ;
637
637
638
638
if (!AllocAndFetchScreenConfigs (dpy , dpyPriv )) {
639
- Xfree (dpyPriv );
640
- Xfree (private );
639
+ free (dpyPriv );
640
+ free (private );
641
641
return NULL ;
642
642
}
643
643
0 commit comments