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/H5PropList.h | |
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/H5PropList.h')
-rw-r--r-- | c++/src/H5PropList.h | 3 |
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 }; |