diff options
| author | Dana Jansens <danakj@orodu.net> | 2010-11-04 10:12:42 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2011-01-24 14:19:23 -0500 |
| commit | f14bf9cac2a6a98e34f81c195d4e4bece5df5f16 (patch) | |
| tree | 3d720727c299bd32a92a1766cf2b2f159a558c47 | |
| parent | 4e3ffbfc281a1e738838fd4859ac691ccea91a87 (diff) | |
don't free the XIC if it wasn't created. this appears to cause a crash
| -rw-r--r-- | obt/keyboard.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/obt/keyboard.c b/obt/keyboard.c index db327a6b..8bfdd39b 100644 --- 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); } } |
