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

Unified Diff: Source/wtf/Vector.h

Issue 23608009: NULL out the buffer in the Vector<T, inline> destructor. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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/wtf/Vector.h
diff --git a/Source/wtf/Vector.h b/Source/wtf/Vector.h
index db435570babb827628a9e632196c942013a4f652..a49fb68864c175df5ee972dd0b8fdea8f42aedf8 100644
--- a/Source/wtf/Vector.h
+++ b/Source/wtf/Vector.h
@@ -389,6 +389,7 @@ static const size_t kInitialVectorSize = WTF_VECTOR_INITIAL_SIZE;
~VectorBuffer()
{
deallocateBuffer(buffer());
+ m_buffer = 0;
}
void allocateBuffer(size_t newCapacity)
« 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