Reshat Sabiq wrote:
I'm assigning into the same smart pointer assigned into by method A, by
method B if method A fails. Since method A failed, i expect the pointer
to not be add-refed by method A. However, i'd like to make sure that
that is in fact the case, because smart pointer destruction only calls
release once.

But assigning into a smart pointer (assuming you mean nsCOMPtr or nsRefPtr) releases whatever the previous value was... Otherwise using smart pointers would be well-nigh impossible. Unless you're doing something _really_ odd with the pointer.... What does the code look like?

-Boris
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to