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 ) |