fixes #1999: Tessellation data or OpenInventor data memory leak

This commit is contained in:
wmayer
2017-04-03 18:21:49 +02:00
parent 97ca11f9f2
commit a289538e03
2 changed files with 7 additions and 0 deletions

View File

@@ -186,6 +186,7 @@ private:
xcaf.loadShapes();
#endif
pcDoc->recompute();
hApp->Close(hDoc);
}
catch (Standard_Failure) {
Handle_Standard_Failure e = Standard_Failure::Caught();
@@ -290,6 +291,8 @@ private:
throw Py::Exception();
}
}
hApp->Close(hDoc);
}
catch (Standard_Failure) {
Handle_Standard_Failure e = Standard_Failure::Caught();