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

@@ -889,6 +889,7 @@ void
python_plugin_destroy(ProfPlugin *plugin)
{
disable_python_threads();
callbacks_remove(plugin->name);
free(plugin->name);
Py_XDECREF(plugin->module);
free(plugin);