Fixed leak of display name.

master
Camilla Berglund ago%!(EXTRA string=12 years)
parent 43095307da
commit 5c23071a81
  1. 1
      README.md
  2. 2
      src/cocoa_monitor.m

@ -59,6 +59,7 @@ The following dependencies are needed by the examples and test programs:
recorders to fail
- [Cocoa] Bugfix: Some Core Foundation objects were leaked during joystick
enumeration
- [Cocoa] Bugfix: One copy of each display name string was leaked
- [Win32] Enabled generation of pkg-config file for MinGW
- [Win32] Bugfix: Failure to load winmm or its functions was not reported to
the error callback

@ -308,6 +308,8 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
monitors[found] = _glfwAllocMonitor(name, size.width, size.height);
monitors[found]->ns.displayID = displays[i];
free(name);
for (j = 0; j < [screens count]; j++)
{
NSScreen* screen = [screens objectAtIndex:j];

Loading…
Cancel
Save