summaryrefslogtreecommitdiffstats
path: root/c++/src/H5PropList.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2015-10-13 04:57:28 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2015-10-13 04:57:28 (GMT)
commitbd995868ee2b1206f77f9c9fe03b6936473a82c8 (patch)
tree5610dfa705f0348682790b4613b076e48759d719 /c++/src/H5PropList.h
parent3aee46a9569285c0aab6b3e1ddfef85075bb85dc (diff)
downloadhdf5-bd995868ee2b1206f77f9c9fe03b6936473a82c8.zip
hdf5-bd995868ee2b1206f77f9c9fe03b6936473a82c8.tar.gz
hdf5-bd995868ee2b1206f77f9c9fe03b6936473a82c8.tar.bz2
[svn-r28047] 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 Platforms tested: Linux/32 2.6 (jam) Linux/64 (platypus) Darwin (osx1010test)
Diffstat (limited to 'c++/src/H5PropList.h')
-rw-r--r--c++/src/H5PropList.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/c++/src/H5PropList.h b/c++/src/H5PropList.h
index be04451..7f6ee31 100644
--- a/c++/src/H5PropList.h
+++ b/c++/src/H5PropList.h
@@ -127,6 +127,9 @@ class H5_DLLCPP PropList : public IdComponent {
// Dynamically allocates the PropList global constant
static PropList* getConstant();
+ // Friend function to set PropList id. For library use only.
+ friend void f_PropList_setId(PropList* plist, hid_t new_id);
+
#endif // DOXYGEN_SHOULD_SKIP_THIS
};