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

Unified Diff: Source/wtf/Deque.h

Issue 23531010: Ensure that Vector destruction always clears the buffer pointer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | « no previous file | Source/wtf/Vector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/Deque.h
diff --git a/Source/wtf/Deque.h b/Source/wtf/Deque.h
index 245292747f1722c6989655576bdabfc13c29cfe2..92b593eba80d245ff59b681fb25eb9a9b516e9f6 100644
--- a/Source/wtf/Deque.h
+++ b/Source/wtf/Deque.h
@@ -33,9 +33,9 @@
// FIXME: Could move what Vector and Deque share into a separate file.
// Deque doesn't actually use Vector.
-#include <iterator>
#include "wtf/PassTraits.h"
#include "wtf/Vector.h"
+#include <iterator>
namespace WTF {
@@ -349,6 +349,7 @@ namespace WTF {
m_start = 0;
m_end = 0;
m_buffer.deallocateBuffer(m_buffer.buffer());
+ m_buffer.clearBufferPointer();
checkValidity();
}
« no previous file with comments | « no previous file | Source/wtf/Vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698