about summary refs log tree commit diff stats
path: root/src/plugins/python_api.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-08-11 23:20:59 +0100
committerJames Booth <boothj5@gmail.com>2016-08-11 23:20:59 +0100
commita65403c54abd269ed5717a208b61014502e35967 (patch)
tree0aec778abcebd8caa3ce40ae0f354e4b61e72aa8 /src/plugins/python_api.c
parentbb676cc0fcc3943dc111c4f9e54090337b5e3b79 (diff)
downloadprofani-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.c5
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;
 }