mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-04-20 01:43:12 +02:00
Reset the singleton pointer in SessionManager's destructor.
This commit is contained in:
parent
652543ef19
commit
8fc5eca9d4
@ -129,6 +129,10 @@ SessionManager::SessionManager() :
|
||||
|
||||
SessionManager::~SessionManager() {
|
||||
clear();
|
||||
|
||||
if (_self == this) {
|
||||
_self = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
SessionManager *SessionManager::_self = nullptr;
|
Loading…
Reference in New Issue
Block a user