Skip to content

Commit b2f511c

Browse files
Fix memory leak when previewing layouts in the ManageLayouts dialog
1 parent d7c356f commit b2f511c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Built using Godot 3.5.2
2424
### Fixed
2525
- 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)
2626
- Fixed memory leak when applying image effects. [7235617db7c21837edc7ba7b95f2e7eeb1140691](https://github.com/Orama-Interactive/Pixelorama/commit/7235617db7c21837edc7ba7b95f2e7eeb1140691)
27+
- Fixed memory leak when previewing layouts in the Manage Layouts dialog.
2728
- Tool shortcuts can now work with <kbd>Control</kbd>. [#935](https://github.com/Orama-Interactive/Pixelorama/issues/935)
2829
- Optimize canvas drawing by only updating it when the image(s) have changed. [ac6a4db43d9296ebc03e639d8199dd3878a25d86](https://github.com/Orama-Interactive/Pixelorama/commit/ac6a4db43d9296ebc03e639d8199dd3878a25d86)
2930
- Fix bug where using shortcuts to switch between frames also moved the selection, causing deletions.

src/UI/Dialogs/ManageLayouts.gd

+1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ func _on_DeleteConfirmation_confirmed() -> void:
104104
func refresh_preview():
105105
for tab in mimic_ui.get_tabs():
106106
mimic_ui.remove_child(tab)
107+
tab.queue_free()
107108
for item in Global.top_menu_container.ui.get_tabs():
108109
var box := TextEdit.new()
109110
box.name = item.name

0 commit comments

Comments
 (0)