From bfc0b9afe4287c4f75144069bb092220fe5186b2 Mon Sep 17 00:00:00 2001 From: "Dustin L. Howett" Date: Mon, 6 Jan 2020 08:14:14 -0800 Subject: [PATCH] Operate on the real weak ref table when erasing an entry Fixes #144. (cherry picked from commit 9702494b902eedf9383e9194df372a4482d7a044) --- arc.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arc.mm b/arc.mm index fd920cd..c96681f 100644 --- a/arc.mm +++ b/arc.mm @@ -850,7 +850,7 @@ extern "C" OBJC_PUBLIC BOOL objc_delete_weak_refs(id obj) return NO; } } - auto table = weakRefs(); + auto &table = weakRefs(); auto old = table.find(obj); if (old != table.end()) {