xwin: don't need NULL check before free()

free() is safe against NULL arguments.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1818>
(cherry picked from commit 573d70ae25)
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-02-20 14:12:44 +01:00
committed by Alan Coopersmith
parent 7ab9e87cbd
commit 0d24538c6d

View File

@@ -637,8 +637,7 @@ winClipboardFlushXEvents(HWND hwnd,
if (xtpText_value) {
free(xtpText_value);
}
if (pszConvertData)
free(pszConvertData);
free(pszConvertData);
if (hGlobal && pszGlobalData)
GlobalUnlock(hGlobal);