mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 16:44:11 +00:00
Add a FreeMonitor platform API
This fixes the leak of a wl_output object everytime a monitor is freed.
This commit is contained in:
committed by
linkmauve
parent
b88be7c1e9
commit
8d98a6e37d
@@ -177,6 +177,8 @@ void _glfwFreeMonitor(_GLFWmonitor* monitor)
|
||||
if (monitor == NULL)
|
||||
return;
|
||||
|
||||
_glfwPlatformFreeMonitor(monitor);
|
||||
|
||||
_glfwFreeGammaArrays(&monitor->originalRamp);
|
||||
_glfwFreeGammaArrays(&monitor->currentRamp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user