aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/imDefIc.c
diff options
context:
space:
mode:
authorwalter harms <wharms@bfs.de>2014-06-06 22:53:05 +0200
committerUlrich Sibiller <uli42@gmx.de>2016-10-19 21:40:29 +0200
commit1ff6961231eda8929406b93fe3d70071cbba2469 (patch)
tree23b74007f819f15d2ab3acc2f55731cf17182a17 /nx-X11/lib/X11/imDefIc.c
parentfc26b97ea9053a2aba54824243282e27bc4a1e15 (diff)
downloadnx-libs-1ff6961231eda8929406b93fe3d70071cbba2469.tar.gz
nx-libs-1ff6961231eda8929406b93fe3d70071cbba2469.tar.bz2
nx-libs-1ff6961231eda8929406b93fe3d70071cbba2469.zip
Remove more redundant null checks before Xfree()
Signed-off-by: Harms <wharms@bfs,de> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11/imDefIc.c')
-rw-r--r--nx-X11/lib/X11/imDefIc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/nx-X11/lib/X11/imDefIc.c b/nx-X11/lib/X11/imDefIc.c
index a5b14ec9a..3cf46827a 100644
--- a/nx-X11/lib/X11/imDefIc.c
+++ b/nx-X11/lib/X11/imDefIc.c
@@ -1568,10 +1568,9 @@ _XimProtoCreateIC(
ErrorOnCreatingIC:
_XimUnregisterFilter(ic);
- if (ic->private.proto.ic_resources)
- Xfree(ic->private.proto.ic_resources);
- if (ic->private.proto.ic_inner_resources)
- Xfree(ic->private.proto.ic_inner_resources);
+
+ Xfree(ic->private.proto.ic_resources);
+ Xfree(ic->private.proto.ic_inner_resources);
Xfree(ic);
return (XIC)NULL;
}