summaryrefslogtreecommitdiffstats
path: root/src/H5V.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2015-10-07 21:26:50 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2015-10-07 21:26:50 (GMT)
commitee850624595a13e53ad8a471212be05454502f5b (patch)
tree3fa9acf31f02c8f80c02d0c348a2f716ab35db0b /src/H5V.c
parent39f93e284c4d8cac9e7ffd4e2691cf4e3f47ffe6 (diff)
parent7068fd38b086e974e4c503a9fa42d8c8d863f377 (diff)
downloadhdf5-ee850624595a13e53ad8a471212be05454502f5b.zip
hdf5-ee850624595a13e53ad8a471212be05454502f5b.tar.gz
hdf5-ee850624595a13e53ad8a471212be05454502f5b.tar.bz2
[svn-r27998] fixes after merge.
Diffstat (limited to 'src/H5V.c')
-rw-r--r--src/H5V.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/H5V.c b/src/H5V.c
index 4a61077..24f1016 100644
--- a/src/H5V.c
+++ b/src/H5V.c
@@ -119,7 +119,7 @@ DESCRIPTION
Initializes any interface-specific data or routines.
--------------------------------------------------------------------------*/
-static herr_t
+herr_t
H5V__init_package(void)
{
herr_t ret_value = SUCCEED; /* Return value */
@@ -132,6 +132,8 @@ H5V__init_package(void)
if(H5I_register_type(H5I_VIEW_CLS) < 0)
HGOTO_ERROR(H5E_INTERNAL, H5E_CANTINIT, FAIL, "unable to initialize interface")
+ H5_PKG_INIT_VAR = TRUE;
+
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5V__init_package() */
@@ -165,10 +167,13 @@ H5V_term_package(void)
(void)H5I_clear_type(H5I_VIEW, FALSE, FALSE);
n++; /*H5I*/
} /* end if */
+ else {
+ n += (H5I_dec_type_ref(H5I_VIEW) > 0);
- /* Mark interface as closed */
- if(0 == n)
- H5_PKG_INIT_VAR = FALSE;
+ /* Mark closed */
+ if(0 == n)
+ H5_PKG_INIT_VAR = FALSE;
+ } /* end else */
} /* end if */
FUNC_LEAVE_NOAPI(n)