Freeing Memory

I used OpenCASCADE sdk in my application, I noticed there is memory leak, I use the following arrays and pointers in my application:

Handle(Poly_Triangulation)
Handle(Poly_PolygonOnTriangulation)
TColgp_Array1OfPnt
TColStd_Array1OfInteger

How should I be able to free the above?

Vasiliy Radostev's picture

I also have the same problem. My application is using OpenCascade for dealing with STEP data. After processing of large STEP file hundreds of megabytes are not released!
If anybody find how to free memory used by OpenCascade please notify me also.