projects
/
dana
/
openbox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
don't free the XIC if it wasn't created. this appears to cause a crash
[dana/openbox.git]
/
obt
/
keyboard.c
diff --git
a/obt/keyboard.c
b/obt/keyboard.c
index
db327a6
..
8bfdd39
100644
(file)
--- a/
obt/keyboard.c
+++ b/
obt/keyboard.c
@@
-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);
}
}