Skip to content

Accessing Dictionary from inside of Array results in a memory leak #1240

@Lasuch69

Description

@Lasuch69

Godot version

4.1.1

godot-cpp version

4.1

System information

Fedora Silverblue 38

Issue description

image
This function results in a memory leak.

Recreating this function line by line in GDScript doesn't result in memory leak.

I've tried to return Dictionary as is:
image
Which works fine.

Callable and callv() are affected too.

Steps to reproduce

N/A

Minimal reproduction project

gdextension-memory-leak-main.zip

You can also view it here: https://github.com/Lasuch69/gdextension-memory-leak

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis has been identified as a bugconfirmed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions