Commit 03b7b7db authored by adachan@apple.com's avatar adachan@apple.com

Fix a leak in WebHistory::data().

        Reviewed by Adam Roben.

        * WebHistory.cpp:
        (WebHistory::data):



git-svn-id: svn://svn.chromium.org/blink/trunk@42614 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent bae48d0a
2009-04-17 Ada Chan <adachan@apple.com>
Fix a leak in WebHistory::data().
Reviewed by Adam Roben.
* WebHistory.cpp:
(WebHistory::data):
2009-04-16 Alice Liu <alice.liu@apple.com>
Reviewed by Mark Rowe.
......
......@@ -565,7 +565,7 @@ HRESULT WebHistory::data(IStream** stream)
*stream = 0;
COMPtr<MemoryStream> result = MemoryStream::createInstance(SharedBuffer::wrapCFData(data().get()));
COMPtr<MemoryStream> result(AdoptCOM, MemoryStream::createInstance(SharedBuffer::wrapCFData(data().get())));
return result.copyRefTo(stream);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment