From 7602277c8692e33ac7fa89bc9c0e66c3530b246b Mon Sep 17 00:00:00 2001 From: Wvader <34067397+wvader@users.noreply.github.com> Date: Sat, 19 Mar 2022 16:33:56 +0000 Subject: [PATCH] Backends: Metal: Remove weak ref (#5122, #5123) --- backends/imgui_impl_metal.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/imgui_impl_metal.mm b/backends/imgui_impl_metal.mm index 358103f1b..d2eb46513 100644 --- a/backends/imgui_impl_metal.mm +++ b/backends/imgui_impl_metal.mm @@ -583,7 +583,7 @@ void ImGui_ImplMetal_DestroyDeviceObjects() indexBufferOffset += (size_t)cmd_list->IdxBuffer.Size * sizeof(ImDrawIdx); } - __weak id weakSelf = self; + id weakSelf = self; [commandBuffer addCompletedHandler:^(id) { dispatch_async(dispatch_get_main_queue(), ^{