Module: Mesa Branch: staging/23.2 Commit: 334f71a18a6996ab58cff00a5e8dc9f8bae8e156 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=334f71a18a6996ab58cff00a5e8dc9f8bae8e156
Author: Mike Blumenkrantz <[email protected]> Date: Wed Sep 27 14:43:09 2023 -0400 glx: XFree visual info cc: mesa-stable Reviewed-by: Tapani Pälli <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25441> (cherry picked from commit 441e57048b4e0b09effad202ba4a5c8f8b08131a) --- .pick_status.json | 2 +- src/gallium/frontends/glx/xlib/glx_api.c | 2 +- src/glx/glxcmds.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 4fbffc2fceb..22a08136e70 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2664,7 +2664,7 @@ "description": "glx: XFree visual info", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null diff --git a/src/gallium/frontends/glx/xlib/glx_api.c b/src/gallium/frontends/glx/xlib/glx_api.c index 28022c87832..33fd81b9546 100644 --- a/src/gallium/frontends/glx/xlib/glx_api.c +++ b/src/gallium/frontends/glx/xlib/glx_api.c @@ -423,7 +423,7 @@ get_visual( Display *dpy, int scr, unsigned int depth, int xclass ) return vis; } else { - free((void *) vis); + XFree((void *) vis); return NULL; } } diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 21537b7e6ff..ece909779d2 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -1116,7 +1116,7 @@ glXChooseVisual(Display * dpy, int screen, int *attribList) &visualTemplate, &i); if (newList) { - free(visualList); + XFree(visualList); visualList = newList; best_config = config; }
