| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index 241902791c71b507dd4ac524f52ff55352c1933e..c02c4e74de2be6ad0d52c2bd5a019c6b24fc4d67 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -22414,7 +22414,9 @@ RawWeakProperty* WeakProperty::New(Heap::Space space) {
|
| RawObject* raw = Object::Allocate(WeakProperty::kClassId,
|
| WeakProperty::InstanceSize(),
|
| space);
|
| - return reinterpret_cast<RawWeakProperty*>(raw);
|
| + RawWeakProperty* result = reinterpret_cast<RawWeakProperty*>(raw);
|
| + result->ptr()->next_ = 0; // Init the list to NULL.
|
| + return result;
|
| }
|
|
|
|
|
|
|