Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak fix #736

Merged
merged 3 commits into from
Jul 1, 2021
Merged

Memory leak fix #736

merged 3 commits into from
Jul 1, 2021

Conversation

leaanthony
Copy link
Collaborator

  • Fixes a number of memory leaks. Significant reduction in memory usage.
  • Refactored project layout to align with latest Wails.

@leaanthony leaanthony requested a review from matryer June 29, 2021 13:53
@leaanthony leaanthony mentioned this pull request Jun 29, 2021
app/app.go Outdated
Type: dialog.InfoDialog,
Title: "You're up to date",
Message: fmt.Sprintf("%s is the latest version.", latest.TagName),
Buttons: []string{"OK"},
CancelButton: "OK",
})
if err != nil {
// @matryer - how do you want to handle these errors?
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not much we can do if these error is there?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

100% safe to ignore in this context. The error is mainly for text that cannot be converted to UTF-16.

@Etheryte
Copy link

Thank you very much for taking the time to iron this issue out. The effort is greatly appreciated. 👍

@leaanthony
Copy link
Collaborator Author

No worries! I managed to get it down to 32bytes of leakage and that was coming from foundation internals.

@matryer matryer merged commit 61a690f into main Jul 1, 2021
@matryer matryer deleted the memory-leak-fix branch July 1, 2021 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants