Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Renegade C++ Cleanup
Renegade C++ Cleanup [message #437105] Mon, 27 September 2010 16:31 Go to previous message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma:
Colonel
Hey guys.
I'm working on a lot of C++ that has to do with renegade in general (servers, scripts, ect).

When you write code in let say a script what do you have to delete to make sure you don't have any memory leaks?

So far I know of when you create a string like:
const char *Nick

you have to delete it.


what other things are there to delete, and how do I delete them?

*off the top of my head Vector3 is one of the ones where I am wondering if I have to delete it after creating one.

Thanks!


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Just a Musical Thought
Next Topic: C&C_M01 *wip* video
Goto Forum:
  


Current Time: Mon Oct 14 07:20:01 MST 2024

Total time taken to generate the page: 0.00704 seconds