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:
parent
7b06ec4a55
commit
df49b0709b
1 changed files with 3 additions and 0 deletions
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue