Operate on the real weak ref table when erasing an entry

Fixes #144.

(cherry picked from commit 9702494b902eedf9383e9194df372a4482d7a044)
main
Dustin L. Howett 6 years ago committed by David Chisnall
parent 7ad75c07d6
commit bfc0b9afe4

@ -850,7 +850,7 @@ extern "C" OBJC_PUBLIC BOOL objc_delete_weak_refs(id obj)
return NO; return NO;
} }
} }
auto table = weakRefs(); auto &table = weakRefs();
auto old = table.find(obj); auto old = table.find(obj);
if (old != table.end()) if (old != table.end())
{ {

Loading…
Cancel
Save