fixed memory leak caused by previous revision (fixing compiler warnings)

This commit is contained in:
Jeff Hill
2009-07-17 19:15:39 +00:00
parent 8b9dc86233
commit 5b62da8229
+8 -8
View File
@@ -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 );
}
}