Remove disco features added by plugins on unload

This commit is contained in:
James Booth
2016-08-11 23:20:59 +01:00
parent bb676cc0fc
commit a65403c54a
12 changed files with 91 additions and 18 deletions

View File

@@ -974,12 +974,15 @@ python_api_disco_add_feature(PyObject *self, PyObject *args)
}
char *feature_str = python_str_or_unicode_to_string(feature);
char *plugin_name = _python_plugin_name();
allow_python_threads();
api_disco_add_feature(feature_str);
api_disco_add_feature(plugin_name, feature_str);
free(feature_str);
disable_python_threads();
free(plugin_name);
Py_RETURN_NONE;
}