Hi Thomas. [EMAIL PROTECTED]: > I'm worried that these represent a very significant > Memory leak. How are these managed as documents go > into/out of scope? (think someone twiddling the > xlink:href on an image/use element).
You may be right, since I don't reference count the documents. The array is only cleared when the primary BridgeContext is disposed. In SVG 1.2 documents perhaps they should be kept around though, since they have their own script engines still running that may do something. Would soft references here be sufficient to allow a resource document to be freed if it is unreferenced? -- Cameron McCormack ICQ: 26955922 cam (at) mcc.id.au MSN: cam (at) mcc.id.au http://mcc.id.au/ JBR: heycam (at) jabber.org --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]