Path: fixes #9403: Memory leak in Path
This commit is contained in:
@@ -86,7 +86,7 @@ PyObject* PathSimPy::GetResultMesh(PyObject * args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args, ""))
|
||||
return nullptr;
|
||||
cStock *stock = getPathSimPtr()->m_stock;
|
||||
cStock *stock = getPathSimPtr()->m_stock.get();
|
||||
if (!stock)
|
||||
{
|
||||
PyErr_SetString(PyExc_RuntimeError, "Simulation has stock object");
|
||||
|
||||
Reference in New Issue
Block a user