diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2000-12-23 13:17:32 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2000-12-23 13:17:32 (GMT) |
commit | d24bacb8a47f945e6919f067e8057ad30012bd5a (patch) | |
tree | 2844b08018435b9d33f68ef4b787d5434db66d5a /c++/src/H5DataType.h | |
parent | 45c5dd949f7dd4549dc5996ff8395652ef3d9dda (diff) | |
download | hdf5-d24bacb8a47f945e6919f067e8057ad30012bd5a.zip hdf5-d24bacb8a47f945e6919f067e8057ad30012bd5a.tar.gz hdf5-d24bacb8a47f945e6919f067e8057ad30012bd5a.tar.bz2 |
[svn-r3199]
Purpose: bug fix
Description:
I found a couple of places where virtual destructors were missing
and could cause small memory leaks. Also, some destructors were
not virtual when they should be.
Solution:
- added virtual destructors, which also free dynamically allocated
memory
- added virtual to several destructors
- also, fixed several typos
Platforms tested:
Solaris 2.7 (arabica)
Diffstat (limited to 'c++/src/H5DataType.h')
-rw-r--r-- | c++/src/H5DataType.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/c++/src/H5DataType.h b/c++/src/H5DataType.h index 0fa1965..8e6b82e 100644 --- a/c++/src/H5DataType.h +++ b/c++/src/H5DataType.h @@ -7,9 +7,6 @@ namespace H5 { class DataType : public H5Object { public: - // Default constructor - DataType(); - // Creates a datatype given its class and size DataType( const H5T_class_t type_class, size_t size ); @@ -82,6 +79,9 @@ class DataType : public H5Object { // Creates a copy of an existing DataType using its id DataType( const hid_t type_id, bool predtype = false ); + // Default constructor + DataType(); + virtual ~DataType(); protected: |