View | Details | Raw Unified | Return to bug 259967 | Differences between
and this patch

Collapse All | Expand All

(-)b/graphics/qgis/files/patch-src_core_providers_ogr_qgsogrproviderutils.cpp (+19 lines)
Added Link Here
1
--- src/core/providers/ogr/qgsogrproviderutils.cpp.orig	2021-11-19 12:08:37 UTC
2
+++ src/core/providers/ogr/qgsogrproviderutils.cpp
3
@@ -2311,7 +2311,7 @@ void QgsOgrProviderUtils::release( QgsOgrLayer *&layer
4
 }
5
 
6
 
7
-void QgsOgrProviderUtils::releaseDataset( QgsOgrDataset *&ds )
8
+void QgsOgrProviderUtils::releaseDataset( QgsOgrDataset *ds )
9
 {
10
   if ( !ds )
11
     return;
12
@@ -2319,7 +2319,6 @@ void QgsOgrProviderUtils::releaseDataset( QgsOgrDatase
13
   QMutexLocker locker( sGlobalMutex() );
14
   releaseInternal( ds->mIdent, ds->mDs, true );
15
   delete ds;
16
-  ds = nullptr;
17
 }
18
 
19
 bool QgsOgrProviderUtils::canDriverShareSameDatasetAmongLayers( const QString &driverName )
(-)b/graphics/qgis/files/patch-src_core_providers_ogr_qgsogrproviderutils.h (+11 lines)
Added Link Here
1
--- src/core/providers/ogr/qgsogrproviderutils.h.orig	2021-11-19 12:08:37 UTC
2
+++ src/core/providers/ogr/qgsogrproviderutils.h
3
@@ -216,7 +216,7 @@ class CORE_EXPORT QgsOgrProviderUtils
4
     static void release( QgsOgrLayer *&layer );
5
 
6
     //! Release a QgsOgrDataset*
7
-    static void releaseDataset( QgsOgrDataset *&ds );
8
+    static void releaseDataset( QgsOgrDataset *ds );
9
 
10
     //! Make sure that the existing pool of opened datasets on dsName is not accessible for new getLayer() attempts
11
     static void invalidateCachedDatasets( const QString &dsName );

Return to bug 259967