Make sure popup dialogs are not waiting to be shown after they are freed
This commit is contained in:
parent
c5155e7422
commit
231f694bca
1 changed files with 2 additions and 0 deletions
|
@ -65,6 +65,8 @@ ObPopup *popup_new(void)
|
|||
void popup_free(ObPopup *self)
|
||||
{
|
||||
if (self) {
|
||||
popup_hide(self); /* make sure it's not showing or is being delayed and
|
||||
will be shown */
|
||||
XDestroyWindow(ob_display, self->bg);
|
||||
XDestroyWindow(ob_display, self->text);
|
||||
RrAppearanceFree(self->a_bg);
|
||||
|
|
Loading…
Reference in a new issue