]> Dogcows Code - chaz/openbox/blobdiff - obt/keyboard.c
don't free the XIC if it wasn't created. this appears to cause a crash
[chaz/openbox] / obt / keyboard.c
index db327a6b46fc3c6e1e96c7c619c049653e57426e..8bfdd39b7f79046daa5d8a326803cbe9bfa25293 100644 (file)
@@ -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);
     }
 }
This page took 0.021189 seconds and 4 git commands to generate.