Created attachment 616100 [details] [diff] [review]
fix it and add assert
The debug code in nsXPConnect::ReleaseXPConnectSingleton expects it is the one to remove the last reference to nsXPConnect. Unfortunately, this is not the case right now, but it is easy to fix.
This patch fixes it and adds an assert to make the assumption explicit.
The assert found an existing leak in xpcshell-tests. I pushed with out the assert to
We can enable the assert once billm fixes the leak