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

Unified Diff: Source/wtf/ArrayBufferContents.cpp

Issue 1315643002: Merge 200961 "Set ArrayBufferContents size to 0 on allocation fa..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2454/
Patch Set: Created 5 years, 4 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 | « Source/wtf/ArrayBuffer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/ArrayBufferContents.cpp
===================================================================
--- Source/wtf/ArrayBufferContents.cpp (revision 201065)
+++ Source/wtf/ArrayBufferContents.cpp (working copy)
@@ -134,7 +134,7 @@
void* data = nullptr;
allocateMemory(sizeInBytes, policy, data);
m_data = data;
- m_sizeInBytes = sizeInBytes;
+ m_sizeInBytes = data ? sizeInBytes : 0;
m_isShared = isShared;
}
« no previous file with comments | « Source/wtf/ArrayBuffer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698