Do not remove the plugin from the list if the ref count has not reached

zero, otherwise we leak these plugins, since the ref counting is based
on the plugin still being in the list.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25792 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2008-06-03 17:09:13 +00:00
parent cc4ed3f7e7
commit bddb4413d7
1 changed files with 1 additions and 1 deletions

View File

@ -239,8 +239,8 @@ PluginManager::PutPlugin(MediaPlugin *plugin)
if (pinfo->usecount == 0) {
delete pinfo->plugin;
unload_add_on(pinfo->image);
fPluginList->RemoveCurrent();
}
fPluginList->RemoveCurrent();
fLocker->Unlock();
return;
}