| Index: runtime/vm/native_message_handler.cc
|
| diff --git a/runtime/vm/native_message_handler.cc b/runtime/vm/native_message_handler.cc
|
| index 8f47e7ff748afed58d107113ae100744aac54e29..366f313273bff2242b503b9e690b81869d81a656 100644
|
| --- a/runtime/vm/native_message_handler.cc
|
| +++ b/runtime/vm/native_message_handler.cc
|
| @@ -35,9 +35,9 @@ void NativeMessageHandler::CheckAccess() {
|
|
|
| static uint8_t* zone_allocator(
|
| uint8_t* ptr, intptr_t old_size, intptr_t new_size) {
|
| - ApiZone* zone = ApiNativeScope::Current()->zone();
|
| + ApiZone& zone = ApiNativeScope::Current()->zone();
|
| return reinterpret_cast<uint8_t*>(
|
| - zone->Reallocate(reinterpret_cast<uword>(ptr), old_size, new_size));
|
| + zone.Reallocate(reinterpret_cast<uword>(ptr), old_size, new_size));
|
| }
|
|
|
|
|
|
|