Am Dienstag, 29. Mai 2007 schrieb [EMAIL PROTECTED]:
> 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.
That was intended, since expecting that a free or malloc also plays with the 
contents of the pointer/memory is not what we think is nice.
The code that expects this should be fixed instead.

--Dennis

Attachment: signature.asc
Description: This is a digitally signed message part.

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

Reply via email to