summaryrefslogtreecommitdiffstats
path: root/c++/src/H5FaccProp.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2008-07-25 21:51:01 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2008-07-25 21:51:01 (GMT)
commit18fb7d1a78ff488c23ed5e3bec583034176f3bb4 (patch)
treecdf00652c7201807d9fa41feb5bfe357023a695c /c++/src/H5FaccProp.cpp
parentbb8bf261eef26e860eaa1ebf2dd24d053a9378ec (diff)
downloadhdf5-18fb7d1a78ff488c23ed5e3bec583034176f3bb4.zip
hdf5-18fb7d1a78ff488c23ed5e3bec583034176f3bb4.tar.gz
hdf5-18fb7d1a78ff488c23ed5e3bec583034176f3bb4.tar.bz2
[svn-r15407] Purpose: Fix bug
Description: Changed all subclasses' setId to protected p_setId and put back setId in IdComponent. p_setId is used in the library where the id provided by a C API passed on to user's application in the form of a C++ API object, which will be destroyed properly, and so p_setId does not call incRefCount. On the other hand, the public version setId is used by other applications, in which the id passed to setId needs to be closed properly by the application, so setId must call incRefCount for the new object to prevent prematurely closing of the id. Platforms tested: Linux 2.6 (kagiso) SunOS 5.10 (linew) FreeBSD (duty)
Diffstat (limited to 'c++/src/H5FaccProp.cpp')
-rw-r--r--c++/src/H5FaccProp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/src/H5FaccProp.cpp b/c++/src/H5FaccProp.cpp
index 6a70b3b..f2ab0f3 100644
--- a/c++/src/H5FaccProp.cpp
+++ b/c++/src/H5FaccProp.cpp
@@ -225,7 +225,7 @@ void FileAccPropList::getFamily(hsize_t& memb_size, FileAccPropList& memb_plist)
{
throw PropListIException("FileAccPropList::getFamily", "H5Pget_fapl_family failed");
}
- memb_plist.setId(memb_plist_id);
+ memb_plist.p_setId(memb_plist_id);
}
//--------------------------------------------------------------------------