summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-05-04 00:00:48 -0300
committerTingPing <tngpng@gmail.com>2013-05-04 00:00:48 -0300
commitefd21ce982cb9fbd4370ba1ff4364fa92aa9214b (patch)
tree53e8c1836bbc4ad620d2df786cefde8d8289b681
parentc4e96dd48188a5fc753a187c85ee4c744a1060f6 (diff)
fix possible crash
-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);