Fix memory leak in regexp macro assembler. If the buffer has been
expanded the macro assembler owns the buffer and needs to dispose it in the destructor. Review URL: http://codereview.chromium.org/126111 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2158 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
6ed860b7d6
commit
5cbcd53f8a
@ -47,6 +47,7 @@ RegExpMacroAssemblerIrregexp::RegExpMacroAssemblerIrregexp(Vector<byte> buffer)
|
||||
|
||||
RegExpMacroAssemblerIrregexp::~RegExpMacroAssemblerIrregexp() {
|
||||
if (backtrack_.is_linked()) backtrack_.Unuse();
|
||||
if (own_buffer_) buffer_.Dispose();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user