2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 07:35:12 +00:00

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

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();