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 some memory leaks #3779

Merged
merged 2 commits into from
Aug 28, 2017
Merged

Fix some memory leaks #3779

merged 2 commits into from
Aug 28, 2017

Conversation

lukas-w
Copy link
Member

@lukas-w lukas-w commented Aug 27, 2017

No description provided.

{
QString* errors = new QString();
QString errors = m_errors.join('\n') + '\n';
Copy link
Contributor

Choose a reason for hiding this comment

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

Constructor of QString expects a const char* here. Change the '\n's to "\n" to make them string literals.

Copy link
Member Author

@lukas-w lukas-w Aug 27, 2017

Choose a reason for hiding this comment

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

Yup, although it's the join function that expects const char*, not the constructor. Appears to be a Qt5-only feature.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed via 670ca4f

@lukas-w lukas-w merged commit 24d320d into stable-1.2 Aug 28, 2017
@lukas-w lukas-w deleted the fix/memory-leaks branch August 28, 2017 09:21
sdasda7777 pushed a commit to sdasda7777/lmms that referenced this pull request Jun 28, 2022
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.

2 participants