about summary refs log tree commit diff stats
path: root/src/plugins/python_plugins.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_plugins.c
parentbb676cc0fcc3943dc111c4f9e54090337b5e3b79 (diff)
downloadprofani-tty-a65403c54abd269ed5717a208b61014502e35967.tar.gz
Remove disco features added by plugins on unload
Diffstat (limited to 'src/plugins/python_plugins.c')
-rw-r--r--src/plugins/python_plugins.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/python_plugins.c b/src/plugins/python_plugins.c
index b38afaab..66efec54 100644
--- a/src/plugins/python_plugins.c
+++ b/src/plugins/python_plugins.c
@@ -40,6 +40,7 @@
 #include "config/files.h"
 #include "plugins/api.h"
 #include "plugins/callbacks.h"
+#include "plugins/disco.h"
 #include "plugins/plugins.h"
 #include "plugins/python_api.h"
 #include "plugins/python_plugins.h"
@@ -826,6 +827,7 @@ python_plugin_destroy(ProfPlugin *plugin)
 {
     disable_python_threads();
     callbacks_remove(plugin->name);
+    disco_remove_features(plugin->name);
     free(plugin->name);
     free(plugin);
     allow_python_threads();