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

Do not leak each created KviInputEditorSpellCheckerBlock #2563

Conversation

i-garrison
Copy link
Contributor

Objects allocated by splitTextIntoSpellCheckerBlocks into buffer vector are never freed. Fix this by turning vector of pointers into vector of objects.

Objects allocated by splitTextIntoSpellCheckerBlocks into buffer vector are
never freed. Fix this by turning vector of pointers into vector of objects.
Copy link
Contributor

@ctrlaltca ctrlaltca 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. Looks good to me

@ctrlaltca ctrlaltca merged commit 85e5878 into kvirc:master Nov 13, 2023
2 checks passed
@ctrlaltca
Copy link
Contributor

Merged, thank you!

@i-garrison i-garrison deleted the pr/fix-KviInputEditorSpellCheckerBlock-leaks branch November 13, 2023 17:54
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