Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Renegade C++ Cleanup
Re: Renegade C++ Cleanup [message #437157 is a reply to message #437105] Tue, 28 September 2010 10:29 Go to previous messageGo to previous message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma:
General (1 Star)
The rules basically are:


  • If you called new on it, use delete on it when you no longer need it.
  • If you called new[] on it (ie char* test = new char[128]Wink, use delete[] on it.


Debug mode builds enable the memory manager code in 3.4.4. iirc not all of the "leaks" listed can be fixed, but they do show where allocations occurred. Certain leaks were fixed in code released by me not included with 3.4.4 (notably a SurfaceClass leak that sometimes causes lag on exit) and the changes themselves were likely also documented in a post of mine.
 
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: Sun Dec 22 06:57:25 MST 2024

Total time taken to generate the page: 0.00613 seconds