Hi,

Has anyone else noticed this behaviour? I've enabled logging using the
environmentsetting XPCOM_MEM_LEAK_LOG. When I run my stripped down
program (which only does NS_InitEmbedding and NS_TermEmbedding) I get a
few objects that remain in memory.

I tracked a number of them down and ended up with a strange fact. At
startup a number of modules are loaded (browserGlue.js and a few
others). These scripts create XPCWrappedNative objects. When I shutdown
these objects are not released (they all have a reference count of 1).

Also, the MainThread is never released, it has a referencecount equal
to the number of XPCWrappedNative objects. I've seen that the
XPCWrappedNative holds a reference to a thread. So I'm guessing there
is some sort of circular referencing going on. Does anyone else have
the same issue?

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to