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,9 +1294,7 @@ void _glfwPlatformTerminate(void)
|
||||
if (_glfw.wl.cursorTimerfd >= 0)
|
||||
close(_glfw.wl.cursorTimerfd);
|
||||
|
||||
if (_glfw.wl.clipboardString)
|
||||
free(_glfw.wl.clipboardString);
|
||||
if (_glfw.wl.clipboardSendString)
|
||||
free(_glfw.wl.clipboardSendString);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user