mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 17:13:57 -07:00
null check replayManager in dtor
This commit is contained in:
parent
96612e2f31
commit
3f34dcff36
2 changed files with 2 additions and 2 deletions
|
|
@ -255,7 +255,7 @@ void TabGame::emitUserEvent()
|
|||
|
||||
TabGame::~TabGame()
|
||||
{
|
||||
if (replayDock) {
|
||||
if (replayManager) {
|
||||
delete replayManager->replay;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue