Index: src/list-inl.h |
diff --git a/src/list-inl.h b/src/list-inl.h |
index 3eff5826a33d8623515f0650694a174ebc40b49a..60a033df04527ca2678cf46931a8bc86d32163dc 100644 |
--- a/src/list-inl.h |
+++ b/src/list-inl.h |
@@ -147,7 +147,11 @@ void List<T, P>::Allocate(int length, P allocator) { |
template<typename T, class P> |
void List<T, P>::Clear() { |
DeleteData(data_); |
- Initialize(0); |
+ // We don't call Initialize(0) since that requires passing a Zone, |
+ // which we don't really need. |
+ data_ = NULL; |
+ capacity_ = 0; |
+ length_ = 0; |
} |