mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
Fixed leak of display name.
This commit is contained in:
parent
43095307da
commit
5c23071a81
@ -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…
Reference in New Issue
Block a user