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

Fix memory leaks #239

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix memory leaks #239

wants to merge 1 commit into from

Conversation

Cuperino
Copy link
Member

@Cuperino Cuperino commented Feb 6, 2025

Fix memory leaks regarding:

  • Code file viewer
  • UI file viewer
  • Slint file viewer
  • Image file viewer
  • TS translation file viewer
  • Script panel

Fix memory leaks regarding:
- Code file viewer
- UI file viewer
- Slint file viewer
- Image file viewer
- TS translation file viewer
- Script panel
@Cuperino Cuperino added the 🪲 bug Something isn't working label Feb 6, 2025
@Cuperino Cuperino requested a review from narnaud February 6, 2025 01:53
@Cuperino Cuperino self-assigned this Feb 6, 2025
Copy link
Member

@narnaud narnaud left a comment

Choose a reason for hiding this comment

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

Nice catch for most of them, except the QML preview window ;)

@@ -41,7 +41,7 @@ void QmlView::runQml()

const QString qmlFilePath = document()->fileName();

auto *qmlView = new QQuickView();
auto *qmlView = new QQuickView(this->window()->windowHandle());
Copy link
Member

Choose a reason for hiding this comment

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

It doesn't work as expected.
It should show a new window (I suppose that's the reason why there wasn't any parents).
A way to fix that would be to use Delete_on_Close widget attribute.

@narnaud
Copy link
Member

narnaud commented Feb 26, 2025

Btw, make sure to use conventional commits for your commit, and properly initialize pre-commit:

pre-commit install --hook-type commit-msg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants