null check replayManager in dtor

This commit is contained in:
RickyRister 2026-01-16 09:03:36 -08:00
parent 96612e2f31
commit 3f34dcff36
2 changed files with 2 additions and 2 deletions

View file

@ -255,7 +255,7 @@ void TabGame::emitUserEvent()
TabGame::~TabGame()
{
if (replayDock) {
if (replayManager) {
delete replayManager->replay;
}
}

View file

@ -58,7 +58,7 @@ class TabGame : public Tab
private:
AbstractGame *game;
const UserListProxy *userListProxy;
ReplayManager *replayManager;
ReplayManager *replayManager = nullptr;
QStringList gameTypes;
QCompleter *completer;
QStringList autocompleteUserList;