mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
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:
parent
a77ac552ea
commit
757709dc87
3 changed files with 3 additions and 3 deletions
|
|
@ -364,7 +364,7 @@
|
|||
"description": "glx: XFree visual info",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1108,7 +1108,7 @@ glXChooseVisual(Display * dpy, int screen, int *attribList)
|
|||
&visualTemplate, &i);
|
||||
|
||||
if (newList) {
|
||||
free(visualList);
|
||||
XFree(visualList);
|
||||
visualList = newList;
|
||||
best_config = config;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue