_XimLocalDestroyIC: no need to check arg for Xfree()

Xfree() will happily ignore NULL, no need to check
This commit is contained in:
Walter Harms 2024-01-08 13:06:03 +01:00
parent 1261802fb3
commit e6310b5212

View file

@ -61,10 +61,10 @@ _XimLocalDestroyIC(
if (ic->core.focus_window)
_XUnregisterFilter(ic->core.im->core.display,
ic->core.focus_window, _XimLocalFilter, (XPointer)ic);
if(ic->private.local.ic_resources) {
Xfree(ic->private.local.ic_resources);
ic->private.local.ic_resources = NULL;
}
Xfree(ic->private.local.ic_resources);
ic->private.local.ic_resources = NULL;
return;
}