Memory leak when creating new SteamAudioPlayer
Opened this issue · 0 comments
Ryhon0 commented
Are you using the provided fork of Godot?
Yes
Godot-steam-audio version
0.2.2
Steam-Audio version
Not sure. Whichever is in the 0.2.2 GH release
Operating System
Arch Linux
Describe the bug
When creating a new SteamAudioPlayer, a memory leak occurs, even if the player is freed
To Reproduce
Create a new SteamAudioPlayer and free it. Observe as the memory usage goes up.
Expected behavior
SteamAudioPlayer frees memory when the node is freed.
Example project, code snippet, or screenshots
extends Node
@export var stream : AudioStream
func _process(_delta):
play()
func play():
var player = SteamAudioPlayer.new()
player.stream = stream
player.volume_db = -200;
add_child(player)
player.play()
player.finished.connect(player.queue_free)