fixes #1999: Tessellation data or OpenInventor data memory leak
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user