mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
glx: Be a bit more paranoid in glx client cleanup
This would probably crash (via double-free) if you had multiple GPUs and an indirect context. Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
@@ -293,6 +293,7 @@ glxClientCallback(CallbackListPtr *list, void *closure, void *data)
|
||||
free(cl->returnBuf);
|
||||
free(cl->largeCmdBuf);
|
||||
free(cl->GLClientextensions);
|
||||
memset(cl, 0, sizeof(*cl));
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user