<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - WinLauncher fails to download files."
href="https://bugs.webkit.org/show_bug.cgi?id=146242#c9">Comment # 9</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - WinLauncher fails to download files."
href="https://bugs.webkit.org/show_bug.cgi?id=146242">bug 146242</a>
from <span class="vcard"><a class="email" href="mailto:achristensen@apple.com" title="Alex Christensen <achristensen@apple.com>"> <span class="fn">Alex Christensen</span></a>
</span></b>
<pre>I missed that that parameter is a IWebDownloadDelegatePtr which is a _com_ptr_t. Yes, I think this is not a memory leak, but a use-after-free. The IWebDownloadDelegatePtr goes out of scope, which deletes the WebDownloadDelegate which we are still using as a delegate. I think you'll need some kind of global reference to the WebDownloadDelegate.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>