Skip to content

Using queue_free after Tween.Stop causes a memory leak #79869

Closed
@dillyo09

Description

@dillyo09

Godot version

v4.1.1.stable.official [bd6af8e]

System information

Godot v4.1.1.stable - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3070 Ti (NVIDIA; 31.0.15.3640) - Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz (16 Threads)

Issue description

Running the following code causes a memory leak:

var tween = get_tree().create_tween()
tween.stop()
queue_free()

Steps to reproduce

  1. Create a Tween
  2. Use tween.stop()
  3. queue_free() the Node that created the Tween

Minimal reproduction project

TweenMemoryLeak.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions