diff options
author | Matt Turner <[email protected]> | 2014-09-21 16:32:57 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-09-24 09:58:42 -0700 |
commit | 452926a5ec54e5700657d28b2cb8e46c4bbaa0a9 (patch) | |
tree | dcbd417d2ade077e18f25bf31afb4022138dc9a1 /src/gallium/state_trackers | |
parent | e5162defc8169a1d0a06e16c65c5f63b98923426 (diff) |
mesa: Use realloc() instead of _mesa_realloc() and remove the latter.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/glx_api.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |