[freespace2] memory leak patch is in

Matt matt at use.net
Sat Jun 14 20:14:23 EDT 2003


On 11 Jun 2003, Taylor Richards wrote:

> Found and fixed two problems that could cause segfaults, plus found
> another leak (damn things won't leave me alone).  I've tested this again
> with normal and debug builds of FS1 and FS2 but that doesn't mean that I
> didn't miss something.  If anyone has any problems please let me know.

May I suggest that in the font memory leak fix, after you free the given
resource, then set the resource to be NULL. It's a good habit to get into
in case there are double frees or attempts to access to resource after a
free. Also, if there are ever any duplicat entries in the list, this would
help alert you to that situation.

--
tangled strands of DNA explain the way that I behave.
http://www.clock.org/~matt




More information about the freespace2 mailing list