Revision: 41294
http://brlcad.svn.sourceforge.net/brlcad/?rev=41294&view=rev
Author: indianlarry
Date: 2010-11-09 11:00:47 +0000 (Tue, 09 Nov 2010)
Log Message:
-----------
fixed delete statement for allocated array (delete knots -> delete [] knots)
Modified Paths:
--------------
brlcad/trunk/src/librt/opennurbs_ext.cpp
Modified: brlcad/trunk/src/librt/opennurbs_ext.cpp
===================================================================
--- brlcad/trunk/src/librt/opennurbs_ext.cpp 2010-11-09 00:33:42 UTC (rev
41293)
+++ brlcad/trunk/src/librt/opennurbs_ext.cpp 2010-11-09 11:00:47 UTC (rev
41294)
@@ -169,7 +169,7 @@
}
min = xmax;
}
- delete knots;
+ delete [] knots;
} else {
int knotcnt = trimCurve->SpanCount();
double *knots = new double[knotcnt + 1];
@@ -182,7 +182,7 @@
}
min = xmax;
}
- delete knots;
+ delete [] knots;
}
if (!NEAR_ZERO(max-min, TOL)) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits