diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e66f22024e0..da78f6acd54 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,8 +56,8 @@ jobs: - os: macos-15 config: "swift-ios" working_directory: "swift" - build_flags: "PLATFORMS='macosx iphonesimulator'" - test_flags: "--platform=iphonesimulator --controller-app --rfilter=Ice/operations" # Remove rfilter once #3286 is fixed + build_flags: "PLATFORMS='macosx iphonesimulator' OPTIMIZE=no" + test_flags: "--config Debug --platform=iphonesimulator --controller-app --filter=Ice/operations" # Remove rfilter once #3286 is fixed build_cpp_and_python: true # Static builds diff --git a/swift/src/IceImpl/DispatchAdapter.mm b/swift/src/IceImpl/DispatchAdapter.mm index ffc82f6ea88..cd2efffd398 100644 --- a/swift/src/IceImpl/DispatchAdapter.mm +++ b/swift/src/IceImpl/DispatchAdapter.mm @@ -28,7 +28,7 @@ auto encapsulation = new std::vector(inEncaps, inEncaps + sz); inEncaps = encapsulation->data(); - cleanup = [encapsulation] { delete encapsulation; }; + cleanup = [encapsulation] { }; } else { @@ -37,7 +37,7 @@ // When dispatch completes, the new InputStream will be deleted. auto dispatchInputStream = new Ice::InputStream(std::move(request.inputStream())); - cleanup = [dispatchInputStream] { delete dispatchInputStream; }; + cleanup = [dispatchInputStream, inEncaps] {}; dispatchInputStream->readEncapsulation(inEncaps, sz); };