Bug 115760 - Fix memory leak after r149692
Summary: Fix memory leak after r149692
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.8
: P4 Trivial
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 115766
  Show dependency treegraph
 
Reported: 2013-05-07 14:51 PDT by Alex Christensen
Modified: 2013-05-07 23:43 PDT (History)
2 users (show)

See Also:


Attachments
Patch (1.73 KB, patch)
2013-05-07 14:56 PDT, Alex Christensen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Christensen 2013-05-07 14:51:48 PDT
https://bugs.webkit.org/show_bug.cgi?id=42324 introduced a memory leak.  I fixed this leak by using RetainPtr<WKDataRef> instead of just WKDataRef.  I also added UNUSED_PARAM macros for non-cf builds.
Comment 1 Alex Christensen 2013-05-07 14:56:21 PDT
Created attachment 200981 [details]
Patch
Comment 2 Tim Horton 2013-05-07 14:59:43 PDT
Comment on attachment 200981 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=200981&action=review

> Tools/ChangeLog:3
> +        fixed a memory leak introduced by bug 42324 by using a RetainPtr

Probably should have been capitalized and probably reference the revision and not the bug.
Comment 3 WebKit Commit Bot 2013-05-07 15:25:29 PDT
Comment on attachment 200981 [details]
Patch

Clearing flags on attachment: 200981

Committed r149697: <http://trac.webkit.org/changeset/149697>
Comment 4 WebKit Commit Bot 2013-05-07 15:25:31 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Darin Adler 2013-05-07 18:32:57 PDT
Comment on attachment 200981 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=200981&action=review

> Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:848
> +    RetainPtr<WKDataRef> wkData = WKBundleFrameCopyWebArchive(frame);

This doesn’t fix the leak. You need to call adoptCF to fix the leak.
Comment 6 Mark Rowe (bdash) 2013-05-07 23:43:09 PDT
It was fixed properly under bug 115766.