incref the Py_None before returning it
Dana Jansens danakj@orodu.net
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/python.cc
→
src/python.cc
@@ -19,6 +19,7 @@ return NULL;
printf("SHIT CALLED!@!\n"); + Py_INCREF(Py_None); return Py_None; }@@ -36,7 +37,7 @@ };
void initopenbox() { - PyClient_Type.ob_type = &PyType_Type; + OBClient_Type.ob_type = &PyType_Type; Py_InitModule("openbox", OBMethods); }