[webkit-dev] Tightening up smart pointer usage rules

Holger Freyther zecke at selfish.org
Mon Jun 28 17:57:10 PDT 2010


On 06/29/2010 04:39 AM, Darin Adler wrote:
> Hi folks.
> 
> I’d like to use our smart pointers more consistently to decrease the chances of memory leaks or other similar problems.
> 
> My proposal is that we have a rule that all calls to "new" are immediately followed by putting the object into a smart pointer.

I like that, it would have found/avoided a memleak for SimpleFontData we
had in Gtk+ and spread to more platforms..


More information about the webkit-dev mailing list