diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2015-10-13 15:15:01 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2015-10-13 15:15:01 (GMT) |
commit | faf35f2d4c9a74eed3e9b34f5b9b334870ee8783 (patch) | |
tree | c5dea3acd87cffea2c3122a8ec789a90f46081b0 /c++/src/H5DataType.cpp | |
parent | ab8d3b1db99c7579ba21a9bdb3b7c9a4d0461fa9 (diff) | |
download | hdf5-faf35f2d4c9a74eed3e9b34f5b9b334870ee8783.zip hdf5-faf35f2d4c9a74eed3e9b34f5b9b334870ee8783.tar.gz hdf5-faf35f2d4c9a74eed3e9b34f5b9b334870ee8783.tar.bz2 |
[svn-r28052] Purpose: Fix memory leaks
Description:
- Implemented the friend function
void f_PropList_setId(PropList* plist, hid_t new_id)
to work around the same problem described in trunk r26655, for the
API DataSet::getCreatePlist()
- Cleaned up some comments and obsolete functions
Merged from trunk r28047
Platforms tested:
Linux/32 2.6 (jam)
Darwin (osx1010test)
Diffstat (limited to 'c++/src/H5DataType.cpp')
-rw-r--r-- | c++/src/H5DataType.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/c++/src/H5DataType.cpp b/c++/src/H5DataType.cpp index 47aaa14..d98a0cf 100644 --- a/c++/src/H5DataType.cpp +++ b/c++/src/H5DataType.cpp @@ -237,8 +237,7 @@ DataType& DataType::operator=( const DataType& rhs ) { if (this != &rhs) { - id = rhs.id; - incRefCount(); // increment number of references to this id + setId(rhs.id); } return(*this); } |