Skip to content

Commit f3e4051

Browse files
committed
Fix subgraph not being retained by SubgraphElements.retain()
1 parent c2d18e5 commit f3e4051

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/OpenSwiftUICore/View/Input/ViewList.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2336,6 +2336,7 @@ private struct SubgraphElements: ViewList.Elements {
23362336
guard subgraph.isValid else {
23372337
return nil
23382338
}
2339+
subgraph.retain()
23392340
return Release(base: base.retain(), subgraph: subgraph)
23402341
}
23412342
}

0 commit comments

Comments
 (0)