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>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-02-20 14:12:44 +01:00 committed by Marge Bot
parent eafec5836a
commit 573d70ae25

View File

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