Commit 9cea9079 authored by Julian Helfferich's avatar Julian Helfferich

Fix Coverity #76269: Uninitialized member

The uninitialized member in question is the pointer mMessageBox. The
message box will be created in createGameItemGroups() and deleted in
deleteGameItemGroups(). I set the pointer to nullptr in the constructor.
parent c9b88347
......@@ -47,6 +47,8 @@ KBlocksScene::KBlocksScene(GameLogicInterface *p, int capacity)
mUpdateTimer.setInterval(mUpdateInterval);
connect(&mUpdateTimer, &QTimer::timeout, this, &KBlocksScene::updateGame);
mUpdateTimer.stop();
mMessageBox = nullptr;
}
KBlocksScene::~KBlocksScene()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment