diff options
Diffstat (limited to 'src/image_test.cc')
| -rw-r--r-- | src/image_test.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/image_test.cc b/src/image_test.cc index afccb4acc0..e2abbaccfa 100644 --- a/src/image_test.cc +++ b/src/image_test.cc @@ -72,6 +72,9 @@ TEST_F(ImageTest, WriteRead) { ASSERT_GE(sizeof(image_header) + space->Size(), static_cast<size_t>(file->Length())); } + // Need to delete the compiler since it has worker threads which are attached to runtime. + delete compiler_.release(); + // tear down old runtime before making a new one, clearing out misc state delete runtime_.release(); java_lang_dex_file_ = NULL; |