dlclose() handle if the library loaded wasn't a plugin

This commit is contained in:
Tim Wojtulewicz 2023-03-12 21:08:56 -07:00
parent 6a2e43635f
commit ada22fbf42

View file

@ -254,6 +254,7 @@ bool Manager::ActivateDynamicPluginInternal(const std::string& name, bool ok_if_
{ {
errors->push_back( errors->push_back(
util::fmt("load plugin library %s did not instantiate a plugin", path)); util::fmt("load plugin library %s did not instantiate a plugin", path));
dlclose(hdl);
continue; continue;
} }