occt: master ef779ae0

Author Committer Branch Timestamp Parent
mpv bugmaster master 2020-06-18 07:24:07 master 003c363c
Affected Issues  0031075: Application Framework - reading STEP file into TDocStd_Document leads to memory leaks
Changeset 0031075: Application Framework - reading STEP file into TDocStd_Document leads to memory leaks

In the TDocStd_Owner keep simple pointer to TDocStd_Document instead of Handle. This causes automatic destruction of the document without explicit call of Close.
In Standard_Type added a static variable theType that initializes theRegistry map earlier. Otherwise exit from Draw interpreter crashes in many test-cases because not-closed transactions are aborted on document handle release from Draw theVariables map.

Corrected method for test OCC159bug due to the fact that Owner does not add a ref count now
Close the document in the end of bugs xde bug22776 otherwise double remove of visualization objects (on library exit and on visualization attributes remove from the document) causes crash on exit from draw
Added a new test bugs caf bug31075
mod - src/QABugs/QABugs_1.cxx Diff File
mod - src/Standard/Standard_Type.cxx Diff File
mod - src/TDF/TDF_Data.cxx Diff File
mod - src/TDocStd/TDocStd_Document.cxx Diff File
mod - src/TDocStd/TDocStd_Document.hxx Diff File
mod - src/TDocStd/TDocStd_Owner.cxx Diff File
mod - src/TDocStd/TDocStd_Owner.hxx Diff File
mod - src/TPrsStd/TPrsStd_DriverTable.cxx Diff File
add - tests/bugs/caf/bug31075 Diff File
mod - tests/bugs/xde/bug22776 Diff File