diff options
Diffstat (limited to 'c++/src/H5DataSpace.cpp')
-rw-r--r-- | c++/src/H5DataSpace.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/c++/src/H5DataSpace.cpp b/c++/src/H5DataSpace.cpp index 746dc39..3e1d922 100644 --- a/c++/src/H5DataSpace.cpp +++ b/c++/src/H5DataSpace.cpp @@ -56,10 +56,7 @@ void DataSpace::copy( const DataSpace& like_space ) id = H5Scopy( like_space.getId() ); // points to the same ref counter - ref_count = like_space.ref_count; - - // increment ref counter to indicate additional references to this id - ref_count->increment(); + ref_count = new RefCounter; if( id <= 0 ) { |