mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
Move a Py_DECREF call into a more balanced place.
This commit is contained in:
parent
0d9c50d4c5
commit
dbdec38dfa
3 changed files with 23 additions and 7 deletions
|
|
@ -388,7 +388,6 @@ PyObject * Create_PyScript(PyObject * wrapper, PyObject * py_class)
|
|||
PyErr_Print();
|
||||
}
|
||||
}
|
||||
Py_DECREF(wrapper);
|
||||
return pyob;
|
||||
}
|
||||
|
||||
|
|
@ -405,6 +404,8 @@ void Create_PyMind(BaseMind * mind, const std::string & package,
|
|||
if (o != NULL) {
|
||||
mind->setScript(new PythonEntityScript(o, (PyObject *)wrapper));
|
||||
}
|
||||
|
||||
Py_DECREF(wrapper);
|
||||
}
|
||||
|
||||
static PyObject * is_location(PyObject * self, PyObject * loc)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue