Merge pull request #44899 from qarmin/remove_memory_leak_canvas_group

Remove memory leak in Canvas Group
This commit is contained in:
Rémi Verschelde 2021-01-04 07:32:19 +01:00 committed by GitHub
commit ec99c8159d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}