diff options
author | James Booth <boothj5@gmail.com> | 2016-08-11 23:20:59 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-08-11 23:20:59 +0100 |
commit | a65403c54abd269ed5717a208b61014502e35967 (patch) | |
tree | 0aec778abcebd8caa3ce40ae0f354e4b61e72aa8 /src/plugins/python_api.c | |
parent | bb676cc0fcc3943dc111c4f9e54090337b5e3b79 (diff) | |
download | profani-tty-a65403c54abd269ed5717a208b61014502e35967.tar.gz |
Remove disco features added by plugins on unload
Diffstat (limited to 'src/plugins/python_api.c')
-rw-r--r-- | src/plugins/python_api.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/python_api.c b/src/plugins/python_api.c index b58237a9..f2bce2e3 100644 --- a/src/plugins/python_api.c +++ b/src/plugins/python_api.c @@ -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; } |