summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-05-30 22:23:00 -0300
committerTingPing <tngpng@gmail.com>2013-05-30 22:23:00 -0300
commit855c20501baba9e0bcda546b6c07f20dc5648659 (patch)
tree89a3d94175962790566164ae1b20df63bef687c1
parent945251c6b82d5f42092cd2849591aecb9d9e0af8 (diff)
fix crash
-rw-r--r--plugins/python/python.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/python/python.c b/plugins/python/python.c
index 8b768799..2976faeb 100644
--- a/plugins/python/python.c
+++ b/plugins/python/python.c
@@ -934,10 +934,10 @@ Context_compare(ContextObject *a, ContextObject *b, int op)
 	else
 	{
 		PyErr_SetString(PyExc_TypeError, "contexts are either equal or not equal");
-		Py_INCREF(Py_None);
 		ret = Py_None;
 	}
 
+	Py_INCREF(ret);
 	return ret;
 }