MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / _glfwFreeMonitor

Function _glfwFreeMonitor

extern/glfw/src/monitor.c:180–192  ·  view source on GitHub ↗

Frees a monitor object and any data associated with it

Source from the content-addressed store, hash-verified

178// Frees a monitor object and any data associated with it
179//
180void _glfwFreeMonitor(_GLFWmonitor* monitor)
181{
182 if (monitor == NULL)
183 return;
184
185 _glfwPlatformFreeMonitor(monitor);
186
187 _glfwFreeGammaArrays(&monitor->originalRamp);
188 _glfwFreeGammaArrays(&monitor->currentRamp);
189
190 free(monitor->modes);
191 free(monitor);
192}
193
194// Allocates red, green and blue value arrays of the specified size
195//

Callers 2

terminateFunction · 0.85
_glfwInputMonitorFunction · 0.85

Calls 2

_glfwFreeGammaArraysFunction · 0.85
_glfwPlatformFreeMonitorFunction · 0.70

Tested by

no test coverage detected