Remove disco features added by plugins on unload
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user