From 17af34bba5b76c4b2e9bf481e5add9851ecfe0d2 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 30 Dec 2006 06:07:32 +0000 Subject: [PATCH] unmanaged forwards need to be pruned for dead plugins too --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40237 --- core/systems/ForwardSys.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/systems/ForwardSys.cpp b/core/systems/ForwardSys.cpp index 0a3bb6b1..76acd0ab 100644 --- a/core/systems/ForwardSys.cpp +++ b/core/systems/ForwardSys.cpp @@ -104,6 +104,12 @@ void CForwardManager::OnPluginUnloaded(IPlugin *plugin) fwd = (*iter); fwd->RemoveFunctionsOfPlugin(plugin); } + + for (iter=m_unmanaged.begin(); iter!=m_unmanaged.end(); iter++) + { + fwd = (*iter); + fwd->RemoveFunctionsOfPlugin(plugin); + } } IForward *CForwardManager::FindForward(const char *name, IChangeableForward **ifchng)