in reply to Re^8: Inline::C self-referential struct idioms and memory
in thread Inline::C self-referential struct idioms and memory
However, you may well find that there are additional things to Safefree (again untested):void DESTROY(Node* self) { warn("destroying self"); Safefree(self); }
Admittedly, you've then lost the identification of the actual object that's being Safefree'd - though I think that could be easily addressed.void DESTROY(Node* self) { warn("destroying self"); Safefree(self-> parent); Safefree(self-> sv); Safefree(self); }
|
|---|