Wayland: Remove unnecessary NULL checks

It is fine to pass NULL to free.

(cherry picked from commit 4a68926bfd)
This commit is contained in:
Camilla Löwy 2022-02-11 12:40:21 +01:00 committed by Camilla Löwy
parent d1c0797630
commit 7a4813cedd

View File

@ -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)