[webkit-dev] Tightening up smart pointer usage rules
David Levin
levin at chromium.org
Tue Jun 29 11:23:58 PDT 2010
btw, looking at Darin's earlier note about releaseRef. I think it would be
consistent to rename releaseRef to be leakRef.
On Tue, Jun 29, 2010 at 11:14 AM, Geoffrey Garen <ggaren at apple.com> wrote:
> > I like leakPtr.
> >
> > Personally, releasePtr() is so close to release() (which is safe) that I
> could easily overlook it in a code review and not realize that it hands off
> a raw pointer with a ref count on it.
> >
> > dave
>
> +1
>
> Anders once argued against the name leakPtr, "Well, then you might as well
> rename 'malloc' to 'leak'."
>
> The more I think about it, though, the more I think that "malloc" really
> should be named "leak", at least from the WebKit project's perspective.
>
> Geoff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100629/16d6f907/attachment.html>
More information about the webkit-dev
mailing list