> 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
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to