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 STAC memory leaks #60466

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Fix STAC memory leaks #60466

wants to merge 4 commits into from

Conversation

uclaros
Copy link
Contributor

@uclaros uclaros commented Feb 5, 2025

Description

Fix a couple of STAC memory leaks

@uclaros uclaros added Bug Either a bug report, or a bug fix. Let's hope for the latter! STAC Related to SpatioTemporal Asset Catalog labels Feb 5, 2025
@github-actions github-actions bot added this to the 3.42.0 milestone Feb 5, 2025
Copy link

github-actions bot commented Feb 5, 2025

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit f17ab09)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit f17ab09)

Copy link
Contributor

@rouault rouault left a 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;
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! STAC Related to SpatioTemporal Asset Catalog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants