On Tue, Aug 12, 2014 at 7:37 PM, Benjamin Smedberg
<benja...@smedbergs.us> wrote:
>
> On 8/12/2014 12:28 PM, Joshua Cranmer 🐧 wrote:
>> The rationale for why we still had it was that:
>> nsIFoo *foobar = ReturnsACOMPtr();
>>
>> silently leaks.
>
> Really? I thought that in this case there would be no leak because the
> (temporary-returned) nsCOMPtr destructor would properly free the object. The
> problem is that `foobar` potentially points to an object which has already
> been released.

Correct.  I assume that's what he meant.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to