summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-01-04 07:32:19 +0100
committerGitHub <noreply@github.com>2021-01-04 07:32:19 +0100
commitec99c8159ddfd15acccf1ce704593309daa38396 (patch)
treeb8d7d4550729c45187cf21e99575f69512b43ab8 /scene/2d
parent950dedbb6858458b5944523bf806e35eb4d6a5d8 (diff)
parentb0f28d225928c5323cf255711f998b52cf8190d5 (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.cpp1
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);
}