EgtGraphics :

- corretto memory leak in presa punto notevole di SurfFlatRegion.
This commit is contained in:
Dario Sassi
2018-04-16 10:29:31 +00:00
parent 424db1ae59
commit 3c8c5d0462
+2 -2
View File
@@ -851,8 +851,8 @@ Scene::FindSurfFRSnapPoint( int nSnap, const Point3d& ptWin, int nId, const Fram
bool bFound = false ;
for ( int i = 0 ; i < pSfr->GetChunkCount() ; ++ i) {
for ( int j = 0 ; j < pSfr->GetLoopCount( i) ; ++ j) {
ICurve* pCrv = pSfr->GetLoop( i, j) ;
if ( pCrv == nullptr)
PtrOwner<ICurve> pCrv( pSfr->GetLoop( i, j)) ;
if ( IsNull( pCrv))
return false ;
if ( pCrv->GetType() == CRV_COMPO) {
ICurveComposite* pCrvCompo = GetCurveComposite( pCrv) ;