[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:
@@ -103,13 +103,15 @@ hid_t IdComponent::getId () const
|
||||
void IdComponent::reset ()
|
||||
{
|
||||
delete ref_count;
|
||||
ref_count = NULL;
|
||||
}
|
||||
|
||||
// Default destructor
|
||||
IdComponent::~IdComponent() {
|
||||
|
||||
/* uncomment this block when decide to use dontAtExit or fix the atexit/
|
||||
global destructor problem - BMR 11/14/00
|
||||
/* uncomment this block and complete it when deciding to use dontAtExit
|
||||
unless the atexit/global destructor problem is fixed, then
|
||||
remove it- BMR 11/14/00
|
||||
|
||||
if( id == NOTATEXIT )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user