glX_proto_send.py: Remove deprecated Xmalloc/Xfree calls

Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Matt Turner
2012-09-03 14:19:43 -07:00
parent 7c7b7b068b
commit 812931f602

View File

@@ -239,7 +239,7 @@ __glXReadPixelReply( Display *dpy, struct glx_context * gc, unsigned max_dim,
size = reply.length * 4; size = reply.length * 4;
if (size != 0) { if (size != 0) {
void * buf = Xmalloc( size ); void * buf = malloc( size );
if ( buf == NULL ) { if ( buf == NULL ) {
_XEatData(dpy, size); _XEatData(dpy, size);
@@ -255,7 +255,7 @@ __glXReadPixelReply( Display *dpy, struct glx_context * gc, unsigned max_dim,
__glEmptyImage(gc, 3, width, height, depth, format, type, __glEmptyImage(gc, 3, width, height, depth, format, type,
buf, dest); buf, dest);
Xfree(buf); free(buf);
} }
} }
} }
@@ -970,7 +970,7 @@ struct _glapi_table * __glXNewIndirectAPI( void )
int o; int o;
entries = _glapi_get_dispatch_table_size(); entries = _glapi_get_dispatch_table_size();
table = (_glapi_proc *) Xmalloc(entries * sizeof(_glapi_proc)); table = (_glapi_proc *) malloc(entries * sizeof(_glapi_proc));
/* first, set all entries to point to no-op functions */ /* first, set all entries to point to no-op functions */
for (i = 0; i < entries; i++) { for (i = 0; i < entries; i++) {