]> Dogcows Code - chaz/openbox/commitdiff
incref the Py_None before returning it
authorDana Jansens <danakj@orodu.net>
Sat, 21 Dec 2002 12:19:29 +0000 (12:19 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 21 Dec 2002 12:19:29 +0000 (12:19 +0000)
src/python.cc

index 2c2f9ae3b90c6c467ae87e6d6c651f11e7c48777..0d5c90cb7b724abadbb61160a95e054ffc9c6d3d 100644 (file)
@@ -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);
 }
This page took 0.025156 seconds and 4 git commands to generate.