summaryrefslogtreecommitdiffstats
path: root/compiler/dex
diff options
context:
space:
mode:
authorDavid Srbecky <dsrbecky@google.com>2015-04-09 22:51:56 +0100
committerDavid Srbecky <dsrbecky@google.com>2015-04-09 23:33:28 +0100
commit46325a0fae06ccbf5e0d7a7dd34d6cfe49226a40 (patch)
treea2d440d13bc317fc104bbf9b6634d8fc6886fad4 /compiler/dex
parent66bae2f3039061775c9d39bae95287078423cf20 (diff)
downloadart-46325a0fae06ccbf5e0d7a7dd34d6cfe49226a40.zip
art-46325a0fae06ccbf5e0d7a7dd34d6cfe49226a40.tar.gz
art-46325a0fae06ccbf5e0d7a7dd34d6cfe49226a40.tar.bz2
Fix memory leaks in the CFI tests.
Change-Id: Icb98e4995731c7ac5f99d1be20b447161ea4c4bd
Diffstat (limited to 'compiler/dex')
-rw-r--r--compiler/dex/quick/quick_cfi_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/dex/quick/quick_cfi_test.cc b/compiler/dex/quick/quick_cfi_test.cc
index 0540a8c..2e62166 100644
--- a/compiler/dex/quick/quick_cfi_test.cc
+++ b/compiler/dex/quick/quick_cfi_test.cc
@@ -84,7 +84,7 @@ class QuickCFITest : public CFITest {
cu.mir_graph->current_code_item_ = &code_item;
// Generate empty method with some spills.
- Mir2Lir* m2l = QuickCompiler::GetCodeGenerator(&cu, NULL);
+ std::unique_ptr<Mir2Lir> m2l(QuickCompiler::GetCodeGenerator(&cu, nullptr));
m2l->frame_size_ = 64u;
m2l->CompilerInitializeRegAlloc();
for (const auto& info : m2l->reg_pool_->core_regs_) {