migueldeicaza / SwiftGodot

New Godot bindings for Swift
https://migueldeicaza.github.io/SwiftGodotDocs/tutorials/swiftgodot-tutorials/
MIT License
1.19k stars 77 forks source link

Godot String via Variant subscript operator leaks #543

Closed elijah-semyonov closed 2 months ago

elijah-semyonov commented 2 months ago

Repro:

let string = "Hello, World!"
let variant = Variant(string)

for _ in 0 ..< 2000 {
    let retrieved = variant[0]
}