]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - parser/ParserArena.cpp
JavaScriptCore-903.tar.gz
[apple/javascriptcore.git] / parser / ParserArena.cpp
index a8e81595384a2c882cee7b7aab9bd52b2b2c95de..9c96de7625b00aa89e4036fcd7b8a766826216d5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2009 Apple Inc. All rights reserved.
+ * Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
 #include "ParserArena.h"
 
 #include "Nodes.h"
+#include <wtf/PassOwnPtr.h>
 
 namespace JSC {
 
 ParserArena::ParserArena()
     : m_freeableMemory(0)
     , m_freeablePoolEnd(0)
-    , m_identifierArena(new IdentifierArena)
+    , m_identifierArena(adoptPtr(new IdentifierArena))
 {
 }