Frees a monitor object and any data associated with it
| 178 | // Frees a monitor object and any data associated with it |
| 179 | // |
| 180 | void _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 | // |
no test coverage detected