0031546: Application Framework - Memory leak (100 bytes) on Load / Close OCAF document
authorabv <abv@opencascade.com>
Mon, 4 May 2020 19:25:03 +0000 (22:25 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 7 May 2020 18:24:46 +0000 (21:24 +0300)
commit39c8dc708fd076062eb762c47a4e8d2da4365eea
tree43c1a85d271d7891694fff9883ea69a9c506705d
parentdcc4e908c2b43e1f031fd18c58ab3f16fad3f792
0031546: Application Framework - Memory leak (100 bytes) on Load / Close OCAF document

Class Standard_BaseDriver is inherited from Standard_Transient, its descendants are updated accordingly.
Handle is used to manipulate objects of this class and its descendants (instead of references or raw pointers) to ensure automatic destruction.

Added test bugs caf bug31546

Related:
- Standard_OVERRIDE is added in declarations of virtual methods in descendants of Storage_BaseDriver
- Methods operator << and operator >> are removed in descendants of Storage_BaseDriver (they repeat the same methods inherited from the base class)
- Typedef PCDM_BaseDriverPointer is marked as deprecated
- Unused class DDI_Ostream is removed
- Private field Standard_Transient::count is renamed to myRefCount_ to avoid compiler warnings if the same name is used within the scope of a descendant class
- Output of meaningful error messages is restored in DRAW commands fsdread and fsdwrite
54 files changed:
src/DDF/DDF_BasicCommands.cxx
src/DDF/DDF_IOStream.cxx [deleted file]
src/DDF/DDF_IOStream.hxx [deleted file]
src/DDF/FILES
src/DDocStd/DDocStd_ShapeSchemaCommands.cxx
src/FSD/FSD_BinaryFile.cxx
src/FSD/FSD_BinaryFile.hxx
src/FSD/FSD_CmpFile.cxx
src/FSD/FSD_CmpFile.hxx
src/FSD/FSD_File.cxx
src/FSD/FSD_File.hxx
src/FSD/FSD_FileHeader.hxx
src/PCDM/PCDM.cxx
src/PCDM/PCDM.hxx
src/PCDM/PCDM_BaseDriverPointer.hxx
src/PCDM/PCDM_ReadWriter.cxx
src/PCDM/PCDM_ReadWriter.hxx
src/PCDM/PCDM_ReadWriter_1.cxx
src/PCDM/PCDM_StorageDriver.cxx
src/Standard/Standard_Transient.cxx
src/Standard/Standard_Transient.hxx
src/StdLDrivers/StdLDrivers_DocumentRetrievalDriver.cxx
src/StdObjMgt/StdObjMgt_ReadData.cxx
src/StdObjMgt/StdObjMgt_ReadData.hxx
src/StdObjMgt/StdObjMgt_WriteData.cxx
src/StdObjMgt/StdObjMgt_WriteData.hxx
src/StdStorage/StdStorage.cxx
src/StdStorage/StdStorage.hxx
src/StdStorage/StdStorage_HeaderData.cxx
src/StdStorage/StdStorage_HeaderData.hxx
src/StdStorage/StdStorage_RootData.cxx
src/StdStorage/StdStorage_RootData.hxx
src/StdStorage/StdStorage_TypeData.cxx
src/StdStorage/StdStorage_TypeData.hxx
src/Storage/FILES
src/Storage/Storage_BaseDriver.cxx
src/Storage/Storage_BaseDriver.hxx
src/Storage/Storage_BaseDriver.lxx [deleted file]
src/Storage/Storage_CallBack.hxx
src/Storage/Storage_DefaultCallBack.cxx
src/Storage/Storage_DefaultCallBack.hxx
src/Storage/Storage_HeaderData.cxx
src/Storage/Storage_HeaderData.hxx
src/Storage/Storage_RootData.cxx
src/Storage/Storage_RootData.hxx
src/Storage/Storage_Schema.cxx
src/Storage/Storage_Schema.hxx
src/Storage/Storage_Schema.lxx [deleted file]
src/Storage/Storage_TypeData.cxx
src/Storage/Storage_TypeData.hxx
src/UTL/UTL.cxx
src/UTL/UTL.hxx
tests/bugs/caf/bug31546 [new file with mode: 0644]
tests/bugs/fclasses/bug29355