Skip to content

Commit b9d513a

Browse files
authored
Fix DynamicViewList.Item memory leak (#627)
1 parent 74f1693 commit b9d513a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OpenSwiftUICore/View/DynamicView/DynamicView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private struct DynamicViewList<V>: StatefulRule, AsyncAttribute where V: Dynamic
223223
self.isUnary = isUnary
224224
self.allItems = allItems
225225
super.init(subgraph: subgraph)
226-
allItems.wrappedValue.append(.passRetained(self))
226+
allItems.wrappedValue.append(.passUnretained(self))
227227
}
228228

229229
override func invalidate() {

0 commit comments

Comments
 (0)