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

Unified Diff: src/zone.h

Issue 53089: Fixed test memory leaks (Closed)
Patch Set: Created 11 years, 9 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
Index: src/zone.h
diff --git a/src/zone.h b/src/zone.h
index 45c52a257136b3d5d5406343413ef7f9d8902d09..df691555204c894eabf858c8e2df06058213e333 100644
--- a/src/zone.h
+++ b/src/zone.h
@@ -58,6 +58,9 @@ class Zone {
// allocating new segments of memory on demand using malloc().
static inline void* New(int size);
+ template <typename T>
+ static inline T* NewArray(int length);
+
// Delete all objects and free all memory allocated in the Zone.
static void DeleteAll();

Powered by Google App Engine
This is Rietveld 408576698