diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-01-04 07:32:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-04 07:32:19 +0100 |
commit | ec99c8159ddfd15acccf1ce704593309daa38396 (patch) | |
tree | b8d7d4550729c45187cf21e99575f69512b43ab8 /scene/2d | |
parent | 950dedbb6858458b5944523bf806e35eb4d6a5d8 (diff) | |
parent | b0f28d225928c5323cf255711f998b52cf8190d5 (diff) |
Merge pull request #44899 from qarmin/remove_memory_leak_canvas_group
Remove memory leak in Canvas Group
Diffstat (limited to 'scene/2d')
-rw-r--r-- | scene/2d/canvas_group.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/2d/canvas_group.cpp b/scene/2d/canvas_group.cpp index 0e0aecf224..0f0e583ea7 100644 --- a/scene/2d/canvas_group.cpp +++ b/scene/2d/canvas_group.cpp @@ -84,4 +84,5 @@ CanvasGroup::CanvasGroup() { set_fit_margin(10.0); //sets things } CanvasGroup::~CanvasGroup() { + RS::get_singleton()->canvas_item_set_canvas_group_mode(get_canvas_item(), RS::CANVAS_GROUP_MODE_DISABLED); } |