back to normal non working singleton
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1800 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
25842deac5
commit
aacfb94059
|
@ -20,12 +20,11 @@ EventHandler::~EventHandler() {
|
|||
}
|
||||
|
||||
EventHandler *EventHandler::GetInstance() {
|
||||
static EventHandler* m_Instance2 = 0;
|
||||
fprintf(stderr, "handler instance %p\n", m_Instance2);
|
||||
fprintf(stderr, "handler instance %p\n", m_Instance);
|
||||
|
||||
if (! m_Instance2)
|
||||
m_Instance2 = new EventHandler();
|
||||
return m_Instance2;
|
||||
if (! m_Instance)
|
||||
m_Instance = new EventHandler();
|
||||
return m_Instance;
|
||||
}
|
||||
|
||||
void EventHandler::Destroy() {
|
||||
|
|
Loading…
Reference in New Issue