Skip to content

Commit fceec26

Browse files
author
theraven
committed
Fix bug assigning weak references.
1 parent 0c6c31a commit fceec26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: arc.m

+1
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ id objc_storeWeak(id *addr, id obj)
472472
if (0 == ref->ref[i])
473473
{
474474
ref->ref[i] = addr;
475+
*addr = obj;
475476
return obj;
476477
}
477478
}

0 commit comments

Comments
 (0)