]> OCCT Git - occt-copy.git/commit
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)
committerabv <abv@opencascade.com>
Tue, 5 May 2020 03:47:04 +0000 (06:47 +0300)
commitffe942a5266bd442db2c8f106cfb86e304d1f56f
tree3497a70bb9ab001ca33a26e6298227ac2cbcad3f
parentf7382bd5269f11103be7807b9d6dec866d7fdf8a
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 any descendant class
- Reporting specific 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