mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
committed by
Alan Coopersmith
parent
7ab9e87cbd
commit
0d24538c6d
@@ -637,8 +637,7 @@ winClipboardFlushXEvents(HWND hwnd,
|
||||
if (xtpText_value) {
|
||||
free(xtpText_value);
|
||||
}
|
||||
if (pszConvertData)
|
||||
free(pszConvertData);
|
||||
free(pszConvertData);
|
||||
if (hGlobal && pszGlobalData)
|
||||
GlobalUnlock(hGlobal);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user