Fix a few more scoped_ptr/scoped_array confusions, and stop tring to optimistically load non-existent .dex files.
Change-Id: I0c12a731bdf1da49f2f51665181e5b4d2b423ba2
diff --git a/src/zip_archive.cc b/src/zip_archive.cc
index e44b855..2c63150 100644
--- a/src/zip_archive.cc
+++ b/src/zip_archive.cc
@@ -175,8 +175,8 @@
static bool InflateToFd(int out, int in, size_t uncompressed_length, size_t compressed_length) {
const size_t kBufSize = 32768;
- scoped_ptr<uint8_t> read_buf(new uint8_t[kBufSize]);
- scoped_ptr<uint8_t> write_buf(new uint8_t[kBufSize]);
+ scoped_array<uint8_t> read_buf(new uint8_t[kBufSize]);
+ scoped_array<uint8_t> write_buf(new uint8_t[kBufSize]);
if (read_buf == NULL || write_buf == NULL) {
return false;
}