X-Git-Url: http://git.openbox.org/?p=dana%2Fopenbox.git;a=blobdiff_plain;f=obt%2Fkeyboard.c;h=8bfdd39b7f79046daa5d8a326803cbe9bfa25293;hp=db327a6b46fc3c6e1e96c7c619c049653e57426e;hb=f14bf9cac2a6a98e34f81c195d4e4bece5df5f16;hpb=4e3ffbfc281a1e738838fd4859ac691ccea91a87 diff --git a/obt/keyboard.c b/obt/keyboard.c index db327a6..8bfdd39 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); } }