Hm, i see. So in case of Math.transforms its not actually a leak. I wasnt
looking close enough.
Not sure if I want to use something similar in my situation. Parsing json
does not really require any state unless you want to do the parsing in smaller
chunks.
On Sat, 23 Aug 2008, Mirar @ Pike developers forum wrote:
The easiest way is to allocate things to objects, and clear up things
when the objects get garbaged, and not keep pointers to temporary data
on the C stack. Then you don't really have to catch anything (unless
you want to). :)