+ fix crash due to sloppy reference counting

This commit is contained in:
wmayer
2015-09-15 18:19:36 +02:00
parent d9aa9e4bf1
commit 200362779f
4 changed files with 20 additions and 1 deletions

View File

@@ -189,6 +189,7 @@ PyObject* PathPy::setFromGCode(PyObject * args)
if (PyArg_ParseTuple(args, "s", &pstr)) {
std::string gcode(pstr);
getToolpathPtr()->setFromGCode(gcode);
Py_INCREF(Py_None);
return Py_None;
}
throw Py::Exception("Argument must be a string");