From 1fc035321c53d4c94f1d481c5ce7edca6bdbefc4 Mon Sep 17 00:00:00 2001 From: hxbb00 Date: Tue, 7 Jan 2025 10:12:29 +0800 Subject: [PATCH] Fixing qgsogrproviderconnection memory leaks --- src/core/providers/ogr/qgsogrproviderconnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/providers/ogr/qgsogrproviderconnection.cpp b/src/core/providers/ogr/qgsogrproviderconnection.cpp index 6a6888ff1c61..80d6cf10b06b 100644 --- a/src/core/providers/ogr/qgsogrproviderconnection.cpp +++ b/src/core/providers/ogr/qgsogrproviderconnection.cpp @@ -111,7 +111,7 @@ QVariantList QgsOgrProviderResultIterator::nextRowInternal() { // Release the resources GDALDatasetReleaseResultSet( mHDS.get(), mOgrLayer ); - mHDS.release(); + mHDS.reset(); } } return row;