summaryrefslogtreecommitdiff
path: root/src/python.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-21 12:19:29 +0000
committerDana Jansens <danakj@orodu.net>2002-12-21 12:19:29 +0000
commit925048fedfa855c5315e4951147d47b717637614 (patch)
tree88992c3434ccb1bedaa4a83004f0f3ceb69535aa /src/python.cc
parent2efea6f21cf1bdd69e339f2285b45a31dd68304a (diff)
incref the Py_None before returning it
Diffstat (limited to 'src/python.cc')
-rw-r--r--src/python.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python.cc b/src/python.cc
index 2c2f9ae3..0d5c90cb 100644
--- a/src/python.cc
+++ b/src/python.cc
@@ -19,6 +19,7 @@ static PyObject *shit(PyObject *self, PyObject *args)
printf("SHIT CALLED!@!\n");
+ Py_INCREF(Py_None);
return Py_None;
}
@@ -36,7 +37,7 @@ static PyMethodDef OBMethods[] = {
void initopenbox()
{
- PyClient_Type.ob_type = &PyType_Type;
+ OBClient_Type.ob_type = &PyType_Type;
Py_InitModule("openbox", OBMethods);
}