We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 156dc55 commit 248dffaCopy full SHA for 248dffa
src/core/qgsapplication.cpp
@@ -595,6 +595,8 @@ void QgsApplication::initQgis()
595
void QgsApplication::exitQgis()
596
{
597
delete QgsMapLayerRegistry::instance();
598
+
599
+ delete QgsProviderRegistry::instance();
600
}
601
602
QString QgsApplication::showSettings()
src/core/qgsproviderregistry.cpp
@@ -47,8 +47,8 @@ typedef QString protocolDrivers_t();
47
48
QgsProviderRegistry *QgsProviderRegistry::instance( QString pluginPath )
49
50
- static QgsProviderRegistry mInstance( pluginPath );
51
- return &mInstance;
+ static QgsProviderRegistry* sInstance( new QgsProviderRegistry( pluginPath ) );
+ return sInstance;
52
} // QgsProviderRegistry::instance
53
54
0 commit comments