mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-01-03 14:00:14 +01:00
_XimLocalCreateIC:no need to check arg for Xfree()
Xfree() will happily ignore NULL, no need to check
This commit is contained in:
parent
e6310b5212
commit
e5b14e59a1
1 changed files with 3 additions and 4 deletions
|
|
@ -190,10 +190,9 @@ _XimLocalCreateIC(
|
|||
return((XIC)ic);
|
||||
|
||||
Set_Error :
|
||||
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;
|
||||
Xfree(ic);
|
||||
return((XIC)NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue