Skip to content
Browse files

Destroy connection pool groups when connection pool is destroyed

  • Loading branch information
manisandro committed Jul 6, 2015
1 parent 30daef0 commit 7f5b5fea5629e148e4f5f81d709808a3cf48e3fb
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/core/qgsconnectionpool.h
@@ -228,6 +228,17 @@ class QgsConnectionPool

typedef QMap<QString, T_Group*> T_Groups;

virtual ~QgsConnectionPool()
foreach ( T_Group* group, mGroups )
delete group;

//! Try to acquire a connection: if no connections are available, the thread will get blocked.
//! @return initialized connection or null on error
T acquireConnection( const QString& connInfo )

0 comments on commit 7f5b5fe

Please sign in to comment.
You can’t perform that action at this time.