For sound crash on double quit (not always crash), the problems is 
that psObj is destoryed before the sound code get chance to 
play/remove it.
So psObj is pointing to nothing, but psSimpleObj->type (which is 
psObj) points to area of memory that has been freed.  It then crash.

How to fix this?  We have to make sure sound is removed before 
psObj is out of scope.  

Anyone know where psObj is killed off?  I know there is no 
free(psObj) that would be too easy to find. ;)

Devurandom in rev 1101, in heap.c, you change FREE & MALLOC to free 
& malloc, but you no set what is free to NULL.  You also do not set 
malloc memory to 0.  This could be cause of more errors, since lots 
code expect this.
This my understanding of what FREE & MALLOC macro did before.





 

--
Click to find great rates on health insurance, save big, shop here
http://tagline.hushmail.com/fc/CAaCXv1QUcyXIP7CXP4Xtm139VMNbaij/


_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to