Revision: 56375
http://sourceforge.net/p/brlcad/code/56375
Author: phoenixyjll
Date: 2013-07-31 04:01:58 +0000 (Wed, 31 Jul 2013)
Log Message:
-----------
Delete the OverlapSegment when its curves are NULL.
Modified Paths:
--------------
brlcad/trunk/src/libbrep/intersect.cpp
Modified: brlcad/trunk/src/libbrep/intersect.cpp
===================================================================
--- brlcad/trunk/src/libbrep/intersect.cpp 2013-07-31 03:51:20 UTC (rev
56374)
+++ brlcad/trunk/src/libbrep/intersect.cpp 2013-07-31 04:01:58 UTC (rev
56375)
@@ -2202,6 +2202,10 @@
c2 = NULL;
delete nc2;
return nc1;
+ } else if (nc1) {
+ delete nc1;
+ } else if (nc2) {
+ delete nc2;
}
return NULL;
}
@@ -2724,6 +2728,7 @@
// ~ON_SSX_EVENT() or ~ON_CurveArray().
Event.m_curve3d = Event.m_curveA = Event.m_curveB = NULL;
overlaps[i]->SetCurvesToNull();
+ delete overlaps[i];
overlaps[i] = NULL;
break;
}
@@ -2765,6 +2770,10 @@
overlaps[i]->m_curveB = link_curves(overlaps[i]->m_curveB,
overlaps[j]->m_curveB);
}
}
+ if (!overlaps[j]->m_curve3d || !overlaps[j]->m_curveA ||
!overlaps[j]->m_curveB) {
+ delete overlaps[j];
+ overlaps[j] = NULL;
+ }
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits