mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-13 10:14:20 +00:00
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() {
|
EventHandler *EventHandler::GetInstance() {
|
||||||
static EventHandler* m_Instance2 = 0;
|
fprintf(stderr, "handler instance %p\n", m_Instance);
|
||||||
fprintf(stderr, "handler instance %p\n", m_Instance2);
|
|
||||||
|
|
||||||
if (! m_Instance2)
|
if (! m_Instance)
|
||||||
m_Instance2 = new EventHandler();
|
m_Instance = new EventHandler();
|
||||||
return m_Instance2;
|
return m_Instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
void EventHandler::Destroy() {
|
void EventHandler::Destroy() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user