Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
bb8d4246
Commit
bb8d4246
authored
Mar 17, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #568 from berak:hdf5_fix_delete
parents
fb55f29f
d2dda7f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
hdf5.cpp
modules/hdf/src/hdf5.cpp
+15
-15
No files found.
modules/hdf/src/hdf5.cpp
View file @
bb8d4246
...
...
@@ -367,7 +367,7 @@ vector<int> HDF5Impl::dsgetsize( String dslabel, int dims_flag ) const
H5Dclose
(
dsdata
);
H5Sclose
(
fspace
);
delete
dims
;
delete
[]
dims
;
return
SizeVect
;
}
...
...
@@ -542,9 +542,9 @@ void HDF5Impl::dscreate( const int n_dims, const int* sizes, const int type,
if
(
channs
>
1
)
H5Tclose
(
dstype
);
delete
chunks
;
delete
dsdims
;
delete
maxdim
;
delete
[]
chunks
;
delete
[]
dsdims
;
delete
[]
maxdim
;
H5Pclose
(
dsdcpl
);
H5Sclose
(
dspace
);
...
...
@@ -659,9 +659,9 @@ void HDF5Impl::dsread( OutputArray Array, String dslabel,
Mat
matrix
=
Array
.
getMat
();
H5Dread
(
dsdata
,
dstype
,
dspace
,
fspace
,
H5P_DEFAULT
,
matrix
.
data
);
delete
dsdims
;
delete
mxdims
;
delete
foffset
;
delete
[]
dsdims
;
delete
[]
mxdims
;
delete
[]
foffset
;
H5Tclose
(
dstype
);
H5Sclose
(
dspace
);
...
...
@@ -759,9 +759,9 @@ void HDF5Impl::dswrite( InputArray Array, String dslabel,
if
(
matrix
.
channels
()
>
1
)
H5Tclose
(
dstype
);
delete
dsizes
;
delete
dsdims
;
delete
offset
;
delete
[]
dsizes
;
delete
[]
dsdims
;
delete
[]
offset
;
H5Sclose
(
dspace
);
H5Sclose
(
fspace
);
...
...
@@ -894,10 +894,10 @@ void HDF5Impl::dsinsert( InputArray Array, String dslabel,
if
(
matrix
.
channels
()
>
1
)
H5Tclose
(
dstype
);
delete
dsdims
;
delete
offset
;
delete
fsdims
;
delete
nwdims
;
delete
[]
dsdims
;
delete
[]
offset
;
delete
[]
fsdims
;
delete
[]
nwdims
;
H5Sclose
(
dspace
);
H5Sclose
(
fspace
);
...
...
@@ -1122,7 +1122,7 @@ void HDF5Impl::kpinsert( const vector<KeyPoint> keypoints, String kplabel,
// write into dataset
H5Dwrite
(
dsdata
,
mmtype
,
dspace
,
fspace
,
H5P_DEFAULT
,
&
keypoints
[
0
]
);
delete
fsdims
;
delete
[]
fsdims
;
H5Tclose
(
mmtype
);
H5Sclose
(
dspace
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment