Skip to content

Commit

Permalink
Fix memory leak when previewing layouts in the ManageLayouts dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
OverloadedOrama committed Feb 11, 2024
1 parent d7c356f commit b2f511c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <kbd>Control</kbd>. [#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.
Expand Down
1 change: 1 addition & 0 deletions src/UI/Dialogs/ManageLayouts.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2f511c

Please sign in to comment.