re-ordered GLXwin destruction code

according to how this is done in glfw:
https://github.com/glfw/glfw-legacy/blob/master/lib/x11/x11_window.c
freeing visual after use