mirror of
https://github.com/glfw/glfw.git
synced 2026-09-17 22:32:50 +00:00
Fixed clipboard string leaks.
The clipboard string was not by the Win32 and Cocoa ports on terminate.
This commit is contained in:
@@ -118,6 +118,8 @@ void _glfwPlatformTerminate(void)
|
||||
[_glfw.ns.cursor release];
|
||||
_glfw.ns.cursor = nil;
|
||||
|
||||
free(_glfw.ns.clipboardString);
|
||||
|
||||
_glfwTerminateJoysticks();
|
||||
|
||||
_glfwTerminateContextAPI();
|
||||
|
||||
@@ -218,6 +218,8 @@ void _glfwPlatformTerminate(void)
|
||||
_glfw.win32.classAtom = 0;
|
||||
}
|
||||
|
||||
free(_glfw.win32.clipboardString);
|
||||
|
||||
_glfwTerminateContextAPI();
|
||||
|
||||
_glfwTerminateJoysticks();
|
||||
|
||||
+2
-3
@@ -628,14 +628,13 @@ void _glfwPlatformTerminate(void)
|
||||
_glfw.x11.cursor = (Cursor) 0;
|
||||
}
|
||||
|
||||
free(_glfw.x11.selection.string);
|
||||
|
||||
_glfwTerminateJoysticks();
|
||||
|
||||
_glfwTerminateContextAPI();
|
||||
|
||||
terminateDisplay();
|
||||
|
||||
if (_glfw.x11.selection.string)
|
||||
free(_glfw.x11.selection.string);
|
||||
}
|
||||
|
||||
const char* _glfwPlatformGetVersionString(void)
|
||||
|
||||
Reference in New Issue
Block a user