Free visual list earlier.

master
Camilla Berglund ago%!(EXTRA string=14 years)
parent 339fb7d246
commit 5fd66f7d30
  1. 4
      src/x11_fullscreen.c

@ -372,6 +372,8 @@ int _glfwPlatformGetVideoModes(GLFWvidmode* list, int maxcount)
}
}
XFree(vislist);
rescount = 0;
resarray = NULL;
@ -457,8 +459,6 @@ int _glfwPlatformGetVideoModes(GLFWvidmode* list, int maxcount)
}
}
XFree(vislist);
free(resarray);
free(rgbarray);

Loading…
Cancel
Save