Unload modules in reverse order.

This commit is contained in:
Alexey Sokolov
2011-08-10 00:37:56 +07:00
committed by Uli Schlachter
parent 927c1d3074
commit b5043eb850
+1 -1
View File
@@ -603,7 +603,7 @@ CModules::~CModules() {
void CModules::UnloadAll() {
while (size()) {
CString sRetMsg;
CString sModName = (*this)[0]->GetModName();
CString sModName = back()->GetModName();
UnloadModule(sModName, sRetMsg);
}
}