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:
nakeee 2009-01-05 23:34:53 +00:00
parent 25842deac5
commit aacfb94059

View File

@ -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() {