Skip to content

Commit ba21e56

Browse files
williambaileypaulofaria
authored andcommitted
Prevent Token linked list from leaking. (#10)
1 parent c606130 commit ba21e56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/GraphQL/Language/AST.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ final class Token {
9292
* including ignored tokens. <SOF> is always the first node and <EOF>
9393
* the last.
9494
*/
95-
let prev: Token?
95+
weak var prev: Token?
9696
var next: Token?
9797

9898
init(kind: Kind, start: Int, end: Int, line: Int, column: Int, value: String? = nil, prev: Token? = nil, next: Token? = nil) {

0 commit comments

Comments
 (0)