From 5b62da822984d5a2f3dad035066a8485c5f25014 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Fri, 17 Jul 2009 19:15:39 +0000 Subject: [PATCH] fixed memory leak caused by previous revision (fixing compiler warnings) --- src/gdd/smartGDDPointer.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/gdd/smartGDDPointer.h b/src/gdd/smartGDDPointer.h index 3ef593e20..2e14a6bb8 100644 --- a/src/gdd/smartGDDPointer.h +++ b/src/gdd/smartGDDPointer.h @@ -58,8 +58,8 @@ template < class T > inline smartGDDPointerTemplate < T >::smartGDDPointerTemplate ( T & valueIn ) : pValue ( & valueIn ) { - gddStatus status = this->pValue->reference (); - assert ( ! status ); + gddStatus status = this->pValue->reference (); + assert ( ! status ); } template < class T > @@ -67,8 +67,8 @@ inline smartGDDPointerTemplate < T >::smartGDDPointerTemplate ( T * pValueIn ) : pValue ( pValueIn ) { if ( this->pValue != NULL ) { - gddStatus status = this->pValue->reference (); - assert ( ! status ); + gddStatus status = this->pValue->reference (); + assert ( ! status ); } } @@ -78,8 +78,8 @@ inline smartGDDPointerTemplate < T > :: pValue ( ptrIn.pValue ) { if ( this->pValue != NULL ) { - gddStatus status = this->pValue->reference (); - assert ( ! status ); + gddStatus status = this->pValue->reference (); + assert ( ! status ); } } @@ -87,8 +87,8 @@ template < class T > inline smartGDDPointerTemplate < T > :: ~smartGDDPointerTemplate () { if ( this->pValue != NULL ) { - gddStatus status = this->pValue->reference (); - assert ( ! status ); + gddStatus status = this->pValue->unreference (); + assert ( ! status ); } }