Fix possible HistoryHider bug on old OS X.

This commit is contained in:
John Preston 2019-10-07 17:28:36 +03:00
parent 55d5f6e03d
commit 2835aa446f

View File

@ -809,6 +809,7 @@ void MainWidget::hiderLayer(base::unique_qptr<Window::HistoryHider> hider) {
_hider->hidden(
) | rpl::start_with_next([=, instance = _hider.get()] {
clearHider(instance);
instance->hide();
instance->deleteLater();
}, _hider->lifetime());