mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 13:04:35 +00:00
Wayland: Remove unnecessary NULL checks
It is fine to pass NULL to free.
(cherry picked from commit 4a68926bfd
)
This commit is contained in:
parent
d1c0797630
commit
7a4813cedd
@ -1294,10 +1294,8 @@ void _glfwPlatformTerminate(void)
|
|||||||
if (_glfw.wl.cursorTimerfd >= 0)
|
if (_glfw.wl.cursorTimerfd >= 0)
|
||||||
close(_glfw.wl.cursorTimerfd);
|
close(_glfw.wl.cursorTimerfd);
|
||||||
|
|
||||||
if (_glfw.wl.clipboardString)
|
free(_glfw.wl.clipboardString);
|
||||||
free(_glfw.wl.clipboardString);
|
free(_glfw.wl.clipboardSendString);
|
||||||
if (_glfw.wl.clipboardSendString)
|
|
||||||
free(_glfw.wl.clipboardSendString);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* _glfwPlatformGetVersionString(void)
|
const char* _glfwPlatformGetVersionString(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user