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 30daef0 commit 7f5b5feCopy full SHA for 7f5b5fe
src/core/qgsconnectionpool.h
@@ -228,6 +228,17 @@ class QgsConnectionPool
228
229
typedef QMap<QString, T_Group*> T_Groups;
230
231
+ virtual ~QgsConnectionPool()
232
+ {
233
+ mMutex.lock();
234
+ foreach ( T_Group* group, mGroups )
235
236
+ delete group;
237
+ }
238
+ mGroups.clear();
239
+ mMutex.unlock();
240
241
+
242
//! Try to acquire a connection: if no connections are available, the thread will get blocked.
243
//! @return initialized connection or null on error
244
T acquireConnection( const QString& connInfo )
0 commit comments