Henrik,<div><br></div><div> great catch! How did you find it??<br><br><div class="gmail_quote">On Fri, Nov 19, 2010 at 2:08 AM, Henrik Johansen <span dir="ltr"><<a href="mailto:henrik.s.johansen@veloxit.no">henrik.s.johansen@veloxit.no</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
In sqWin32Window.c, function clipboardWriteFromAt<br>
<br>
The line<br>
<br>
/* allocate temporary storage and copy string (inserting Lfs) */<br>
cvt = tmp = malloc(utf8Count+1);<br>
<br>
cvt is not released before function returns.<br>
<br>
Should be safe to do so after its use in<br>
<br>
/* Convert data to Unicode UTF16. */<br>
MultiByteToWideChar( CP_UTF8, 0, cvt, -1, out, wcharsNeeded );<br>
<br>
<br>
To reproduce:<br>
Write a large string in a workspace (say, 1MB of ascii chars), then repeatedly copy it.<br>
Squeak.exe's memory usage will grow, not released when doing garbage collection.<br>
<br>
Cheers,<br>
Henry</blockquote></div><br></div>