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:
parent
cc4ed3f7e7
commit
bddb4413d7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue