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:
parent
eafec5836a
commit
573d70ae25
|
@ -637,8 +637,7 @@ winClipboardFlushXEvents(HWND hwnd,
|
||||||
if (xtpText_value) {
|
if (xtpText_value) {
|
||||||
free(xtpText_value);
|
free(xtpText_value);
|
||||||
}
|
}
|
||||||
if (pszConvertData)
|
free(pszConvertData);
|
||||||
free(pszConvertData);
|
|
||||||
if (hGlobal && pszGlobalData)
|
if (hGlobal && pszGlobalData)
|
||||||
GlobalUnlock(hGlobal);
|
GlobalUnlock(hGlobal);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue