View Single Post
Old 06-07-2009, 12:44 PM  
sortie
Confirmed User
 
sortie's Avatar
 
Industry Role:
Join Date: Mar 2007
Posts: 7,771
Easy reading for the above link :

Quote:
Originally Posted by link Posted Above
Memory leaks in C++ and how to avoid them

A memory leak is what happens when you forget to free a block of memory allocated with the new operator or when you make it impossible to do so. As a consequence your application may eventually run out of memory and may even cause the system to crash. I will now give you a few tips. Remember that code lines shown in red are the best alternative to each situation - they may be added or may even replace previous code.
__________________
sortie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote