summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Attribute.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/src/H5Attribute.cpp')
-rw-r--r--c++/src/H5Attribute.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/c++/src/H5Attribute.cpp b/c++/src/H5Attribute.cpp
index 88160f6..c1ddeea 100644
--- a/c++/src/H5Attribute.cpp
+++ b/c++/src/H5Attribute.cpp
@@ -21,9 +21,7 @@
#include "H5Include.h"
#include "H5Exception.h"
-#include "H5RefCounter.h"
#include "H5IdComponent.h"
-#include "H5Idtemplates.h"
#include "H5PropList.h"
#include "H5Object.h"
#include "H5AbstractDs.h"
@@ -276,8 +274,9 @@ Attribute::~Attribute()
{
// The attribute id will be closed properly
try {
- resetIdComponent( this ); }
- catch (Exception close_error) { // thrown by p_close
+ decRefCount();
+ }
+ catch (Exception close_error) {
cerr << "Attribute::~Attribute - " << close_error.getDetailMsg() << endl;
}
}