diff options
| -rw-r--r-- | src/modules/system/plugin.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/system/plugin.cpp b/src/modules/system/plugin.cpp index b214c4aab..b937957da 100644 --- a/src/modules/system/plugin.cpp +++ b/src/modules/system/plugin.cpp @@ -347,9 +347,9 @@ bool KviPluginManager::checkUnload() it.current()->unload(); m_pPluginDict->remove(it.currentKey()); } else { - m_pPluginDict++; m_bCanUnload = false; } + it.moveNext(); } return m_bCanUnload; @@ -361,8 +361,9 @@ void KviPluginManager::unloadAll() while(it.current()) { - it.current()->unload(); - m_pPluginDict->remove(it.currentKey()); + it.current()->unload(); + m_pPluginDict->remove(it.currentKey()); + it.moveNext(); } } |
