call UnloadAll before deleting the module vector

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@353 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
imaginos
2005-05-22 20:33:45 +00:00
parent a056702bd4
commit 0435ece35f
+1
View File
@@ -22,6 +22,7 @@ CZNC::CZNC() {
CZNC::~CZNC() {
#ifdef _MODULES
m_pModules->UnloadAll();
delete m_pModules;
for (map<CString,CUser*>::iterator a = m_msUsers.begin(); a != m_msUsers.end(); a++) {