Do i need to free the memory

Handle(AIS_Shape) body= new AIS_Shape(S);

should i use "delete body" to free the memory?

Rabih's picture

Hi,

you need,

body.Nullify();

Regards,
Rabih

WuXuan's picture

thank u very much.