Fix bug introduced when extracting utils.
authorlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 5 Nov 2010 13:12:14 +0000 (13:12 +0000)
committerlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 5 Nov 2010 13:12:14 +0000 (13:12 +0000)
TBR=ager@chromium.org

Review URL: http://codereview.chromium.org/4535004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5773 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/v8utils.h

index 3f272dd..a907c9f 100644 (file)
@@ -184,7 +184,7 @@ class StringBuilder {
   StringBuilder(char* buffer, int size)
       : buffer_(buffer, size), position_(0) { }
 
-  ~StringBuilder() { if (!is_finalized()) buffer_.Dispose(); }
+  ~StringBuilder() { if (!is_finalized()) Finalize(); }
 
   int size() const { return buffer_.length(); }