<p dir="ltr">Looks great, thanks!</p>
<div class="gmail_quote">On 10 May 2014 17:36, "Nico Weber" <<a href="mailto:thakis@chromium.org">thakis@chromium.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div><div><p dir="ltr">>> >      void freeParams() {<br>
>> > +      if (Params) {<br>
>> > +        delete Params->DefaultArgTokens;<br>
>> > +        Params->DefaultArgTokens = nullptr;<br>
>><br>
>> Doesn't Params point to an array? Looks like this will still leak the second and subsequent default arguments.<br>
><br>
> I believe it points to a CachedTokens, which is a typedef for a SmallVector<Token, 4> – so I think it might be correct as-is?</p>
</div></div><p dir="ltr">You're only deleting the tokens for the first parameter</p></blockquote><div>You're right, of course. How does r208484 look?<br></div></div></div></div>
</blockquote></div>