X11: Free the error handle whern returing early in detectEWMH

This commit is contained in:
er-azh 2024-07-25 03:17:43 -04:00
parent b35641f4a3
commit f064f92aea
No known key found for this signature in database
GPG Key ID: 933E21B9BA43FAAB

View File

@ -535,6 +535,7 @@ static void detectEWMH(void)
XA_WINDOW,
(unsigned char**) &windowFromChild))
{
_glfwReleaseErrorHandlerX11();
XFree(windowFromRoot);
return;
}