Fix coverity issue:

* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
This commit is contained in:
wmayer
2022-03-14 11:35:04 +01:00
parent ee60046a65
commit 0f9768fb33
51 changed files with 70 additions and 54 deletions

View File

@@ -1228,7 +1228,7 @@ private:
PyObject* initModule()
{
return (new Module)->module().ptr();
return Base::Interpreter().addModule(new Module);
}
} // namespace TechDraw