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()
|
TabGame::~TabGame()
|
||||||
{
|
{
|
||||||
if (replayDock) {
|
if (replayManager) {
|
||||||
delete replayManager->replay;
|
delete replayManager->replay;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue