Skip to content
Permalink
Browse files
Fix leak
  • Loading branch information
nyalldawson committed Aug 25, 2021
1 parent abdfcb7 commit 91e3d8a07b600eb38b0c55f16addfbdc4b396589
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/providers/ogr/qgsogrprovidermetadata.cpp
@@ -1323,6 +1323,7 @@ QList<QgsProviderSublayerDetails> QgsOgrProviderMetadata::querySublayers( const
if ( char **vectorLayerNames = GDALGroupGetVectorLayerNames( group, nullptr ) )
{
const QStringList layers = QgsOgrUtils::cStringListToQStringList( vectorLayerNames );
CSLDestroy( vectorLayerNames );
// attach path to matching layers
for ( const QString &layer : layers )
{
@@ -1346,6 +1347,7 @@ QList<QgsProviderSublayerDetails> QgsOgrProviderMetadata::querySublayers( const
GDALGroupRelease( subgroup );
}
}
CSLDestroy( subgroupNames );
}
};

0 comments on commit 91e3d8a

Please sign in to comment.