glx: XFree visual info

cc: mesa-stable

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25441>
(cherry picked from commit 441e57048b)
This commit is contained in:
Mike Blumenkrantz 2023-09-27 14:43:09 -04:00 committed by Eric Engestrom
parent a77ac552ea
commit 757709dc87
3 changed files with 3 additions and 3 deletions

View file

@ -364,7 +364,7 @@
"description": "glx: XFree visual info",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -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;
}
}

View file

@ -1108,7 +1108,7 @@ glXChooseVisual(Display * dpy, int screen, int *attribList)
&visualTemplate, &i);
if (newList) {
free(visualList);
XFree(visualList);
visualList = newList;
best_config = config;
}