Commit b46cf0d8 authored by Daniel Stone's avatar Daniel Stone

Fix segfault when _XimProtoCreateIC() fails to create a context; Debian #239991. (Chung-chieh Shan)

parent 6f2132b1
......@@ -1549,6 +1549,7 @@ _XimProtoCreateIC(
return (XIC)ic;
ErrorOnCreatingIC:
_XimUnregisterFilter(ic);
if (ic->private.proto.ic_resources)
Xfree(ic->private.proto.ic_resources);
if (ic->private.proto.ic_inner_resources)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment