fixed memory leak

This commit is contained in:
Jeff Hill
2001-03-30 01:19:12 +00:00
parent c9f8816dea
commit c6f2974aa3
+6
View File
@@ -532,6 +532,12 @@ static smartGDDPointer createDBRDD (unsigned dbrType, aitIndex dbrCount)
if ( ! pDescRet.valid () ) {
return pDescRet;
}
//
// smart pointer class maintains the ref count from here down
//
gddStatus = pDescRet->unreference();
assert (!gddStatus);
if ( pDescRet->isContainer () ) {