Fixed EventManager holding onto stale pointers (bug 3548, r=ds).
This commit is contained in:
+2
-1
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user