mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 16:44:11 +00:00
Allow NULL argument to _glfwPlatformFreeModule
This matches the behavior of _glfw_free and the public API, simplifying cleanup code.
This commit is contained in:
+2
-1
@@ -39,7 +39,8 @@ void* _glfwPlatformLoadModule(const char* path)
|
||||
|
||||
void _glfwPlatformFreeModule(void* module)
|
||||
{
|
||||
FreeLibrary((HMODULE) module);
|
||||
if (module)
|
||||
FreeLibrary((HMODULE) module);
|
||||
}
|
||||
|
||||
GLFWproc _glfwPlatformGetModuleSymbol(void* module, const char* name)
|
||||
|
||||
Reference in New Issue
Block a user