Fix case where more than 4 weak references to the same object would cause infinite loops.

Patch by Thomas Davie!
main
theraven 14 years ago
parent f059be5337
commit 8e023f0063

@ -519,6 +519,7 @@ id objc_storeWeak(id *addr, id obj)
break; break;
} }
} }
oldRef = oldRef->next;
} }
} }
if (nil == obj) if (nil == obj)
@ -569,6 +570,7 @@ id objc_storeWeak(id *addr, id obj)
{ {
break; break;
} }
ref = ref->next;
} }
if (NULL != ref) if (NULL != ref)
{ {

Loading…
Cancel
Save