[cgma-dev] r2273 - cgm/trunk/geom/OCC

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Tue Nov 18 15:29:35 CST 2008


Author: kraftche
Date: 2008-11-18 15:29:35 -0600 (Tue, 18 Nov 2008)
New Revision: 2273

Modified:
   cgm/trunk/geom/OCC/OCCQueryEngine.cpp
Log:
fix memory corruption in OCCQueryEngine destructor

Modified: cgm/trunk/geom/OCC/OCCQueryEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCQueryEngine.cpp	2008-11-18 20:47:08 UTC (rev 2272)
+++ cgm/trunk/geom/OCC/OCCQueryEngine.cpp	2008-11-18 21:29:35 UTC (rev 2273)
@@ -170,9 +170,9 @@
   delete OCCMap;
   delete OccToCGM;
   while( BodyList->size() ) delete BodyList->pop();
-  delete[] WireList;
-  delete[] SurfaceList;
-  delete[] CurveList;
+  delete WireList;
+  delete SurfaceList;
+  delete CurveList;
 }
 
 int OCCQueryEngine::get_major_version()




More information about the cgma-dev mailing list