don't free the XIC if it wasn't created. this appears to cause a crash
This commit is contained in:
parent
4e3ffbfc28
commit
f14bf9cac2
1 changed files with 2 additions and 1 deletions
|
@ -439,7 +439,8 @@ void obt_keyboard_context_unref(ObtIC *ic)
|
|||
{
|
||||
if (--ic->ref < 1) {
|
||||
xic_all = g_slist_remove(xic_all, ic);
|
||||
XDestroyIC(ic->xic);
|
||||
if (ic->xic)
|
||||
XDestroyIC(ic->xic);
|
||||
g_slice_free(ObtIC, ic);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue