summary refs log tree commit diff stats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/python/python.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/python/python.c b/plugins/python/python.c
index 707da20a..337eb415 100644
--- a/plugins/python/python.c
+++ b/plugins/python/python.c
@@ -1247,6 +1247,7 @@ error:
 	if (plugin) {
 		if (plugin->tstate)
 		{
+			Plugin_RemoveAllHooks((PyObject *)plugin);
 			/* FIXME: Handle this? */
 			if (plugin->tstate == PyInterpreterState_ThreadHead(plugin->tstate->interp))
 				Py_EndInterpreter(plugin->tstate);