Skip to content

Commit a78c3c3

Browse files
committed
fixes
1 parent 3e87fe8 commit a78c3c3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/darwin/Framework/CHIP/MTRDevice.mm

-1
Original file line numberDiff line numberDiff line change
@@ -2848,7 +2848,6 @@ - (void)_pruneOrphanedEndpointsAndClusters:(MTRAttributePath *)attributePath
28482848
[dataStoreClusterDataCopy removeObjectForKey:path];
28492849
[dataStoreClusterDataCopy setObject:clusterData forKey:path];
28502850
[self.deviceController.controllerDataStore storeClusterData:dataStoreClusterDataCopy forNodeID:self.nodeID];
2851-
dataStoreClusterData = [NSMutableDictionary dictionaryWithDictionary:[self.deviceController.controllerDataStore getStoredClusterDataForNodeID:self.nodeID]];
28522851
}
28532852
}
28542853
[self _removeCachedAttributeValue:path forPath:attributePath];

src/darwin/Framework/CHIP/MTRDeviceControllerDataStore.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ - (BOOL)_deleteEndpointIndex:(NSNumber *)endpointID forNodeID:(NSNumber *)nodeID
455455
return NO;
456456
}
457457

458-
NSMutableArray * endpointIndex = [NSMutableArray arrayWithArray:[self _fetchEndpointIndexForNodeID:nodeID]];
458+
NSMutableArray * endpointIndex = [[self _fetchEndpointIndexForNodeID:nodeID] mutableCopy];
459459
if (endpointIndex == nil) {
460460
return NO;
461461
}

0 commit comments

Comments
 (0)