Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Unified Diff: Source/platform/exported/WebThreadSafeData.cpp

Issue 1205683002: Fixed leaking data in WebThreadSafeData (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed other ctr Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/exported/WebThreadSafeData.cpp
diff --git a/Source/platform/exported/WebThreadSafeData.cpp b/Source/platform/exported/WebThreadSafeData.cpp
index cafe6c1b97fff6838068c22e064d86aede1cc74e..ac968a49c15d14135eb1050e533d29f9bc1f26a9 100644
--- a/Source/platform/exported/WebThreadSafeData.cpp
+++ b/Source/platform/exported/WebThreadSafeData.cpp
@@ -37,7 +37,7 @@ namespace blink {
WebThreadSafeData::WebThreadSafeData(const char* data, size_t length)
{
- m_private = RawData::create().leakRef();
+ m_private = RawData::create();
m_private->mutableData()->append(data, length);
}
@@ -66,7 +66,7 @@ const char* WebThreadSafeData::data() const
}
WebThreadSafeData::WebThreadSafeData(const PassRefPtr<RawData>& data)
- : m_private(data.leakRef())
+ : m_private(data)
{
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698