diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2015-10-11 04:05:21 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2015-10-11 04:05:21 (GMT) |
commit | fc84edb7e3514556e1b5cbd5268d35fcf21054b6 (patch) | |
tree | 06d36bc6f55016fc2be2dffe019a7c16f094da7e /c++/src/H5Library.h | |
parent | cd49e8a2abcd1a6fd1a4ac578cc208e2bbad1914 (diff) | |
download | hdf5-fc84edb7e3514556e1b5cbd5268d35fcf21054b6.zip hdf5-fc84edb7e3514556e1b5cbd5268d35fcf21054b6.tar.gz hdf5-fc84edb7e3514556e1b5cbd5268d35fcf21054b6.tar.bz2 |
[svn-r28027] Purpose: Fix memory leaks
Description:
- Removed H5Library::instance because it is unnecessary. All H5Library's
methods are static. This, in turn, removed the memory leaks by
H5Library::instance not being deleted.
- Added ObjCreatPropList::deleteConstants to atexist() list
- Cleaned up comments and format inconsistencies with 1.8
Platforms tested:
Linux/32 2.6 (jam)
Linux/64 (platypus)
Darwin (osx1010test)
Diffstat (limited to 'c++/src/H5Library.h')
-rw-r--r-- | c++/src/H5Library.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/c++/src/H5Library.h b/c++/src/H5Library.h index 68ab039..336f9c8 100644 --- a/c++/src/H5Library.h +++ b/c++/src/H5Library.h @@ -29,6 +29,11 @@ namespace H5 { */ class H5_DLLCPP H5Library { public: +#ifndef DOXYGEN_SHOULD_SKIP_THIS + static bool need_cleanup; // indicates if H5close should be called + // - unused, will be removed in future releases. +#endif // DOXYGEN_SHOULD_SKIP_THIS + // Initializes the HDF5 library. static void open(); @@ -60,15 +65,10 @@ class H5_DLLCPP H5Library { // Sends request for terminating the HDF5 library. static void termH5cpp(void); - static H5Library* getInstance(); - #ifndef DOXYGEN_SHOULD_SKIP_THIS private: - // private instance to be created by H5Library only - static H5Library* instance; - // Default constructor - no instance ever created from outsiders H5Library(); |