Skip to content
Snippets Groups Projects
Commit 2053afe9 authored by Aline Gondim Santos's avatar Aline Gondim Santos Committed by Adrien Béraud
Browse files

plugin: fix duplicate handlers in memory

Make sure we unload plugin before trying to load it.

Change-Id: I87ac7b36378c0e70ecd101b68c8fcb8b7ea7fde8
parent a6177c94
No related branches found
No related tags found
No related merge requests found
......@@ -51,8 +51,8 @@ bool
PluginManager::load(const std::string& path)
{
auto it = dynPluginMap_.find(path);
if (it != dynPluginMap_.end() && !it->second.second) {
dynPluginMap_.erase(it);
if (it != dynPluginMap_.end()) {
unload(path);
}
std::string error;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment