Revision: 56002
http://sourceforge.net/p/brlcad/code/56002
Author: phoenixyjll
Date: 2013-07-11 09:36:23 +0000 (Thu, 11 Jul 2013)
Log Message:
-----------
Fix segmentation fault.
Modified Paths:
--------------
brlcad/trunk/src/libbrep/intersect.cpp
Modified: brlcad/trunk/src/libbrep/intersect.cpp
===================================================================
--- brlcad/trunk/src/libbrep/intersect.cpp 2013-07-11 08:56:04 UTC (rev
56001)
+++ brlcad/trunk/src/libbrep/intersect.cpp 2013-07-11 09:36:23 UTC (rev
56002)
@@ -1912,6 +1912,7 @@
t_min = std::min(t, t_min);
t_max = std::max(t, t_max);
}
+
if (i == knotcnt+1) {
// All points are on the ellipse
if (in->IsClosed()) {
@@ -1924,12 +1925,12 @@
if (!ON_NearZero(t_min)) {
nurbscurve.Split(t_min, left, right);
delete left;
+ left = NULL;
}
else
right = nurbscurve.Duplicate();
if (right && !ON_NearZero(t_max - 2*ON_PI)) {
right->Split(t_max, left, right);
- delete right;
}
else
left = right->Duplicate();
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits