Fixed EventManager holding onto stale pointers (bug 3548, r=ds).

This commit is contained in:
David Anderson
2009-02-07 23:56:48 -05:00
parent 178347f9f1
commit a3fade1c1d
2 changed files with 34 additions and 11 deletions
+2 -1
View File
@@ -68,6 +68,7 @@ struct EventHook
IChangeableForward *pPostHook;
bool postCopy;
unsigned int refCount;
char *name;
};
enum EventHookMode
@@ -124,7 +125,7 @@ private:
HandleType_t m_EventType;
Trie *m_EventHooks;
CStack<EventInfo *> m_FreeEvents;
CStack<const char *> m_EventNames;
CStack<EventHook *> m_EventStack;
CStack<IGameEvent *> m_EventCopies;
};