From b2f511c45be61cd26f01e134bf7a6a55109f46ad Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Mon, 12 Feb 2024 00:37:23 +0200 Subject: [PATCH] Fix memory leak when previewing layouts in the ManageLayouts dialog --- CHANGELOG.md | 1 + src/UI/Dialogs/ManageLayouts.gd | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f0318e996..940d6800d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ Built using Godot 3.5.2 ### Fixed - Memory usage has been greatly optimized when doing operations such as drawing, image effects, selecting, transforming, etc, as the images stored in memory are now compressed. [#883](https://github.com/Orama-Interactive/Pixelorama/issues/883) - Fixed memory leak when applying image effects. [7235617db7c21837edc7ba7b95f2e7eeb1140691](https://github.com/Orama-Interactive/Pixelorama/commit/7235617db7c21837edc7ba7b95f2e7eeb1140691) +- Fixed memory leak when previewing layouts in the Manage Layouts dialog. - Tool shortcuts can now work with Control. [#935](https://github.com/Orama-Interactive/Pixelorama/issues/935) - Optimize canvas drawing by only updating it when the image(s) have changed. [ac6a4db43d9296ebc03e639d8199dd3878a25d86](https://github.com/Orama-Interactive/Pixelorama/commit/ac6a4db43d9296ebc03e639d8199dd3878a25d86) - Fix bug where using shortcuts to switch between frames also moved the selection, causing deletions. diff --git a/src/UI/Dialogs/ManageLayouts.gd b/src/UI/Dialogs/ManageLayouts.gd index 52cdaed44..fe593fc03 100644 --- a/src/UI/Dialogs/ManageLayouts.gd +++ b/src/UI/Dialogs/ManageLayouts.gd @@ -104,6 +104,7 @@ func _on_DeleteConfirmation_confirmed() -> void: func refresh_preview(): for tab in mimic_ui.get_tabs(): mimic_ui.remove_child(tab) + tab.queue_free() for item in Global.top_menu_container.ui.get_tabs(): var box := TextEdit.new() box.name = item.name