Michal Ceresna wrote in mozilla.dev.tech.xpcom:
> On Tuesday 14 August 2007, Rolf Bode-Meyer wrote:
>> nsFunc::OnStopRunningUrl() {
>> Release();
>> return Bla();
>> }
> A call to Release() decreases the reference counter. An object
> is destroyed only if the counter value is 0.
Assume it becomes 0 in Release. The code executed is in
NS_IMPL_RELEASE_WITH_DESTROY, but what's the effect? The object is
destroyed while executing code in it?
> So, in this example the code only decreases the counter
> (assuming it was increased somewhere else before).
Increased by NS_IF_ADDREF, no?
Rolf
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom