projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2efea6f
)
incref the Py_None before returning it
author
Dana Jansens
<danakj@orodu.net>
Sat, 21 Dec 2002 12:19:29 +0000
(12:19 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sat, 21 Dec 2002 12:19:29 +0000
(12:19 +0000)
src/python.cc
patch
|
blob
|
history
diff --git
a/src/python.cc
b/src/python.cc
index
2c2f9ae
..
0d5c90c
100644
(file)
--- 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()
{
-
Py
Client_Type.ob_type = &PyType_Type;
+
OB
Client_Type.ob_type = &PyType_Type;
Py_InitModule("openbox", OBMethods);
}