-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 STAC memory leaks #60466
base: master
Are you sure you want to change the base?
Fix STAC memory leaks #60466
Conversation
🪟 Windows buildsDownload Windows builds of this PR for testing. 🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for backport ?
@@ -202,6 +202,7 @@ void QgsStacItemItem::itemRequestFinished( int requestId, QString error ) | |||
} | |||
else | |||
{ | |||
delete object; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if setStacItem() would accept a unique_ptr there could be a way of avoiding manual deletion, but I realize this might lead to more changes.
Description
Fix a couple of STAC memory leaks