summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Idtemplates.h
diff options
context:
space:
mode:
Diffstat (limited to 'c++/src/H5Idtemplates.h')
-rw-r--r--c++/src/H5Idtemplates.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/c++/src/H5Idtemplates.h b/c++/src/H5Idtemplates.h
index 442ca97..220be6d 100644
--- a/c++/src/H5Idtemplates.h
+++ b/c++/src/H5Idtemplates.h
@@ -18,8 +18,10 @@ void resetIdComponent(
if( obj->noReference()) // ref count of this object is decremented here
{
if( obj->getId() > 0 )
+ {
obj->p_close(); // which p_close depends on whom this
// IdComponent object belongs to
+ }
obj->reset(); // delete ref_count from IdComponent
}
}