Skip to content
Snippets Groups Projects
Commit 0358e709 authored by Aline Gondim Santos's avatar Aline Gondim Santos
Browse files

fix: erase exit function when unload plugin

Unloading a plugin without erasing the exit function might cause Jami
to crash when closing.

Change-Id: I63d5c481036c4718507396f76df3f132e543c48c
parent e74fa624
No related branches found
No related tags found
Loading
......@@ -88,6 +88,7 @@ PluginManager::unload(const std::string& path)
std::lock_guard<std::mutex> lk(mtx_);
exitFunc_[path]();
dynPluginMap_.erase(it);
exitFunc_.erase(path);
}
return true;
......
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