Fixing alloy-sandbox.

This commit is contained in:
Ben Vanik
2014-08-21 21:36:34 -07:00
parent c9d71486b0
commit 9b76d02f26
2 changed files with 14 additions and 10 deletions

View File

@@ -37,7 +37,11 @@ using alloy::runtime::FunctionInfo;
X64Assembler::X64Assembler(X64Backend* backend)
: Assembler(backend), x64_backend_(backend) {}
X64Assembler::~X64Assembler() = default;
X64Assembler::~X64Assembler() {
// Emitter must be freed before the allocator.
emitter_.reset();
allocator_.reset();
}
int X64Assembler::Initialize() {
int result = Assembler::Initialize();