[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:
@@ -19,14 +19,6 @@ FileCreatPropList::FileCreatPropList() : PropList( H5P_FILE_CREATE ) {}
|
||||
// Copy constructor: makes a copy of the original FileCreatPropList object;
|
||||
FileCreatPropList::FileCreatPropList( const FileCreatPropList& orig ) : PropList( orig ) {}
|
||||
|
||||
// Copies a file create property list using assignment statement
|
||||
// Notes: can this be inherited from PropList??? and copy or operator=???
|
||||
FileCreatPropList& FileCreatPropList::operator=( const FileCreatPropList& rhs )
|
||||
{
|
||||
copy (rhs);
|
||||
return( *this );
|
||||
}
|
||||
|
||||
void FileCreatPropList::getVersion(
|
||||
int& boot, int& freelist, int& stab, int& shhdr ) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user