🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

memory leak (tutorial 10)

Started by
4 comments, last by franc82 17 years, 7 months ago
In the tutorial 10 () after the instruction sector1.triangle = new TRIANGLE[numtriangles]; I would like to know when that dynamic memory is freed?
Advertisement
never ? :)
- Iliak -
[ ArcEngine: An open source .Net gaming framework ]
[ Dungeon Eye: An open source remake of Eye of the Beholder II ]
so can i free that memory in order to avoid a memory leak?
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
You can't free the memory at the end of SetUpWorld because you still need the data elsewhere.
try to free the memory at the end of winMain.
thanks for advice

This topic is closed to new replies.

Advertisement