| Index: runtime/vm/dart_api_state.h
|
| diff --git a/runtime/vm/dart_api_state.h b/runtime/vm/dart_api_state.h
|
| index fc80adc4fc3752389b16996199169dc1ab7fd263..a1f276ca8c79bf734b0dba9a215355096f785c2c 100644
|
| --- a/runtime/vm/dart_api_state.h
|
| +++ b/runtime/vm/dart_api_state.h
|
| @@ -135,8 +135,8 @@ class WeakPersistentHandle {
|
| }
|
|
|
| static void Finalize(WeakPersistentHandle* handle) {
|
| - if (handle->callback() != NULL) {
|
| - Dart_WeakPersistentHandleFinalizer callback = handle->callback();
|
| + Dart_WeakPersistentHandleFinalizer callback = handle->callback();
|
| + if (callback != NULL) {
|
| void* peer = handle->peer();
|
| handle->Clear();
|
| (*callback)(reinterpret_cast<Dart_Handle>(handle), peer);
|
|
|