summaryrefslogtreecommitdiffstats
path: root/c++/src/H5DataSpace.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2010-09-16 05:59:39 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2010-09-16 05:59:39 (GMT)
commitaa0772d9b2f5349d703e769b8c60515cf1bb1946 (patch)
treed24277ebbe2d645cc72330539fd72fec69e7c550 /c++/src/H5DataSpace.cpp
parent4c436595abbee884ab01c9e9e7f6d1e131572875 (diff)
downloadhdf5-aa0772d9b2f5349d703e769b8c60515cf1bb1946.zip
hdf5-aa0772d9b2f5349d703e769b8c60515cf1bb1946.tar.gz
hdf5-aa0772d9b2f5349d703e769b8c60515cf1bb1946.tar.bz2
[svn-r19395] Purpose: Fixed bug 1903
Description: After a C++ API object is closed, its id should be reset regardless of the reference count of the underlying HDF5 object. User reported the bug for Group, but it's applicable to all other objects. Fixed. Platforms tested: Linux/32 2.6 (jam) FreeBSD/64 6.3 (liberty) SunOS 5.10 (linew)
Diffstat (limited to 'c++/src/H5DataSpace.cpp')
-rw-r--r--c++/src/H5DataSpace.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/c++/src/H5DataSpace.cpp b/c++/src/H5DataSpace.cpp
index 3d74b51..2c6fd37 100644
--- a/c++/src/H5DataSpace.cpp
+++ b/c++/src/H5DataSpace.cpp
@@ -612,10 +612,8 @@ void DataSpace::close()
{
throw DataSpaceIException("DataSpace::close", "H5Sclose failed");
}
- // reset the id when the dataspace that it represents is no longer
- // referenced
- if (getCounter() == 0)
- id = 0;
+ // reset the id
+ id = 0;
}
}