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(), ^{