[svn-r3199]
Purpose: bug fix Description: I found a couple of places where virtual destructors were missing and could cause small memory leaks. Also, some destructors were not virtual when they should be. Solution: - added virtual destructors, which also free dynamically allocated memory - added virtual to several destructors - also, fixed several typos Platforms tested: Solaris 2.7 (arabica)
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user