Hi,
According to Scott's nsCOMPtr user manual, the following statement will
possibly cause leak if the getter AddRef to different interface, this
can be solve by using two statements.
nsCOMPtr<nsIFoo> foo( do_QueryInterface(aList->ElementAt(i)) );
It has been file in bug #8221. I tried to check for the bug status and
it has been marked resolved. May I know if I am safe to use this single
statement in the new release?
Thanks.
--
Best Regards,
Tee, Leong-Chiang
PeerTouch Technologies Pte. Ltd.
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom