mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
EventManager: Fix Event Manager being accessed after static destruction
This commit is contained in:
committed by
Kyle Schwarz
parent
3ab06199c3
commit
d42c51d772
@@ -7,8 +7,8 @@
|
||||
using namespace icsneo;
|
||||
|
||||
EventManager& EventManager::GetInstance() {
|
||||
static EventManager inst;
|
||||
return inst;
|
||||
static EventManager* inst = new EventManager();
|
||||
return *inst;
|
||||
}
|
||||
|
||||
void EventManager::downgradeErrorsOnCurrentThread() {
|
||||
|
||||
Reference in New Issue
Block a user