Remove plugin callbacks in plugin_destroy functions

This commit is contained in:
James Booth
2016-07-04 22:54:55 +01:00
parent 0d7b4cb4a7
commit c8d09083a8
4 changed files with 12 additions and 1 deletions

View File

@@ -523,6 +523,8 @@ c_plugin_destroy(ProfPlugin *plugin)
{
assert (plugin && plugin->module);
callbacks_remove(plugin->name);
if (dlclose (plugin->module)) {
log_warning ("dlclose failed to close `%s' with `%s'", plugin->name, dlerror ());
}