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() TabGame::~TabGame()
{ {
if (replayDock) { if (replayManager) {
delete replayManager->replay; delete replayManager->replay;
} }
} }

View file

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