Free visual list earlier.
This commit is contained in:
parent
339fb7d246
commit
5fd66f7d30
@ -372,6 +372,8 @@ int _glfwPlatformGetVideoModes(GLFWvidmode* list, int maxcount)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XFree(vislist);
|
||||||
|
|
||||||
rescount = 0;
|
rescount = 0;
|
||||||
resarray = NULL;
|
resarray = NULL;
|
||||||
|
|
||||||
@ -457,8 +459,6 @@ int _glfwPlatformGetVideoModes(GLFWvidmode* list, int maxcount)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
XFree(vislist);
|
|
||||||
|
|
||||||
free(resarray);
|
free(resarray);
|
||||||
free(rgbarray);
|
free(rgbarray);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user