Fix segfault in hmode.

This commit is contained in:
QC 2014-06-06 19:31:33 +02:00
parent 7b06ec4a55
commit df49b0709b
1 changed files with 3 additions and 0 deletions

View File

@ -188,6 +188,9 @@ void textbox_hide ( textbox *tb )
// will also unmap the window if still displayed
void textbox_free ( textbox *tb )
{
if ( tb == NULL ) {
return;
}
if ( tb->flags & TB_EDITABLE ) {
XDestroyIC ( tb->xic );
XCloseIM ( tb->xim );