1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

Fix segfault in hmode.

This commit is contained in:
QC 2014-06-06 19:31:33 +02:00
parent 7b06ec4a55
commit df49b0709b

View file

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