Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variant.call leaks #544

Closed
elijah-semyonov opened this issue Sep 24, 2024 · 0 comments · Fixed by #545
Closed

Variant.call leaks #544

elijah-semyonov opened this issue Sep 24, 2024 · 0 comments · Fixed by #545

Comments

@elijah-semyonov
Copy link
Contributor

elijah-semyonov commented Sep 24, 2024

Repro:

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

// https://docs.godotengine.org/en/stable/classes/class_string.html#class-string-method-left
let methodName = StringName("left")

for _ in 0 ..< 2000 {
    let _ = variant.call(method: methodName, Variant(2))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant