Path: fixes #9403: Memory leak in Path

This commit is contained in:
wmayer
2023-05-12 10:43:29 +02:00
parent 86128f1de2
commit c242b5de5b
3 changed files with 6 additions and 11 deletions

View File

@@ -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");