Fix use-after-free which may happen during shutdown
If a module, e.g. keepnick, tries to remove a timer in OnIRCDisconnected. Thanks to KindOne for the report.
This commit is contained in:
1 parent
20c5c7d8be
commit
8fdb530ee3
2 files changed
+6
-1
No files matched your search
@@ -121,7 +121,7 @@ public:
|
||||
return;
|
||||
|
||||
m_pTimer->Stop();
|
||||
RemTimer(m_pTimer->GetName());
|
||||
RemTimer(m_pTimer);
|
||||
m_pTimer = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user