Sign in to follow this  
franc82

memory leak (tutorial 10)

Recommended Posts

In the tutorial 10 () after the instruction sector1.triangle = new TRIANGLE[numtriangles]; I would like to know when that dynamic memory is freed?

Share this post


Link to post
Share on other sites
so can i free that memory in order to avoid a memory leak? I have tried to free it before the return statement of the SetUpWorld function but it doesn't work any more

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this