diff --git a/GL/glx/glxext.c b/GL/glx/glxext.c index 4d6bfd7c6..546d87f01 100644 --- a/GL/glx/glxext.c +++ b/GL/glx/glxext.c @@ -393,7 +393,7 @@ void glxSuspendClients(void) int i; for (i = 1; i < currentMaxClients; i++) { - if (glxGetClient(clients[i])->inUse) + if (clients[i] && glxGetClient(clients[i])->inUse) IgnoreClient(clients[i]); } @@ -408,7 +408,7 @@ void glxResumeClients(void) glxBlockClients = FALSE; for (i = 1; i < currentMaxClients; i++) { - if (glxGetClient(clients[i])->inUse) + if (clients[i] && glxGetClient(clients[i])->inUse) AttendClient(clients[i]); }