From 452926a5ec54e5700657d28b2cb8e46c4bbaa0a9 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sun, 21 Sep 2014 16:32:57 -0700 Subject: mesa: Use realloc() instead of _mesa_realloc() and remove the latter. Reviewed-by: Ian Romanick --- src/gallium/state_trackers/glx/xlib/glx_api.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gallium/state_trackers') diff --git a/src/gallium/state_trackers/glx/xlib/glx_api.c b/src/gallium/state_trackers/glx/xlib/glx_api.c index d97cbd7d996..84b605a0b41 100644 --- a/src/gallium/state_trackers/glx/xlib/glx_api.c +++ b/src/gallium/state_trackers/glx/xlib/glx_api.c @@ -248,8 +248,7 @@ save_glx_visual( Display *dpy, XVisualInfo *vinfo, */ xmvis->vishandle = vinfo; /* Allocate more space for additional visual */ - VisualTable = (XMesaVisual *) _mesa_realloc( VisualTable, - sizeof(XMesaVisual) * NumVisuals, + VisualTable = (XMesaVisual *) realloc( VisualTable, sizeof(XMesaVisual) * (NumVisuals + 1)); /* add xmvis to the list */ VisualTable[NumVisuals] = xmvis; -- cgit v1.2.3