Skip to content

Commit

Permalink
Fix tests caused by new nullability change
Browse files Browse the repository at this point in the history
  • Loading branch information
jtung-apple committed Jun 12, 2024
1 parent d32ca87 commit 5cdd829
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/darwin/Framework/CHIP/MTRDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1056,8 +1056,10 @@ - (BOOL)_iterateDelegatesWithBlock:(void(NS_NOESCAPE ^)(MTRDeviceDelegateInfo *
for (MTRDeviceDelegateInfo * delegateInfo in _delegates) {
id<MTRDeviceDelegate> strongDelegate = delegateInfo.delegate;
if (strongDelegate) {
@autoreleasepool {
block(delegateInfo);
if (block) {
@autoreleasepool {
block(delegateInfo);
}
}
(void) strongDelegate; // ensure it stays alive
} else {
Expand Down

0 comments on commit 5cdd829

Please sign in to comment.