On 17.08.2017 04:03, Shih-Chiang Chien wrote:
You should use |forget| to transfer the ownership of the nsIArray from list to _retval.
Ok, thanks. Already suspected that (found some similar things in the code). Could we update the docs (maybe some set of examples) ? IIRC, there're some places that do it like in my prev mail, which I took as example (just forget where exactly that was) - should that be fixed ? By the way: is there a difference between out parameters and rval ? Or can I just assume, rval's are equivalent to an out parameter ? OTOH, is there a way to create versions that really return it as rval, so I conveniently could just call like that ? nsCOMPtr<nsIMutableArray> list = addrbook->FindRecipients(addr); --mtx _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform