[Orxonox-commit 7320] r11937 - code/branches/Masterserver_FS18/src/libraries/network
mdedial at orxonox.net
mdedial at orxonox.net
Thu May 3 16:02:59 CEST 2018
Author: mdedial
Date: 2018-05-03 16:02:58 +0200 (Thu, 03 May 2018)
New Revision: 11937
Modified:
code/branches/Masterserver_FS18/src/libraries/network/GamestateManager.cc
Log:
Another attempt at fixing random segfaults.
Modified: code/branches/Masterserver_FS18/src/libraries/network/GamestateManager.cc
===================================================================
--- code/branches/Masterserver_FS18/src/libraries/network/GamestateManager.cc 2018-05-03 14:01:23 UTC (rev 11936)
+++ code/branches/Masterserver_FS18/src/libraries/network/GamestateManager.cc 2018-05-03 14:02:58 UTC (rev 11937)
@@ -66,6 +66,7 @@
if(this->currentGamestate_)
{
delete this->currentGamestate_;
+ this->currentGamestate_ = nullptr;
}
for(const auto& gsPair : this->gamestateQueue)
@@ -160,6 +161,7 @@
if (this->currentGamestate_)
{
delete this->currentGamestate_;
+ this->currentGamestate_ = nullptr;
}
uint8_t gsMode;
More information about the Orxonox-commit
mailing list