
Fri, 07/25/2008 - 05:46
Forums:
For example, the follow codes:
TopoDS_Shape aTopoShape;
Handle_AIS_Shape aAisShape=new AIS_Shape(aTopoShape);
The question is that: Is there needs for me to delete aAisShape which is Handle type by manual in my destructor function? If not, will memory leak happen?
Fri, 07/25/2008 - 10:22
It would be better to search this forum on this subject, it definitely has answers to your question, see e.g.:
http://www.opencascade.org/org/forum/thread_7349/
http://www.opencascade.org/org/forum/thread_509/
http://www.opencascade.org/org/forum/thread_505/