incref the Py_None before returning it
This commit is contained in:
parent
2efea6f21c
commit
925048fedf
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue