Skip to content

Commit 2d3de54

Browse files
authored
Fix subgraph not being retained by SubgraphElements.retain() (#653)
1 parent 5598a15 commit 2d3de54

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)