Fix possible crash in player closing.

This commit is contained in:
John Preston 2018-01-01 22:12:38 +03:00
parent 94cf307ae0
commit 9c72470c17
1 changed files with 1 additions and 1 deletions

View File

@ -1728,7 +1728,7 @@ void MainWidget::closeBothPlayers() {
if (_playerUsingPanel) {
_playerUsingPanel = false;
_player.destroyDelayed();
} else {
} else if (_player) {
_player->hide(anim::type::normal);
}
_playerVolume.destroyDelayed();