diff options
-rw-r--r-- | project2/rdbmsDataSource.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/project2/rdbmsDataSource.cpp b/project2/rdbmsDataSource.cpp index 7ff4408..e843d8c 100644 --- a/project2/rdbmsDataSource.cpp +++ b/project2/rdbmsDataSource.cpp @@ -65,9 +65,6 @@ RdbmsDataSource::RdbmsDataSource(const xmlpp::Element * p) : RdbmsDataSource::~RdbmsDataSource() { - BOOST_FOREACH(DBHosts::value_type & h, dbhosts) { - h.second->connection->finish(); - } } void @@ -196,6 +193,7 @@ RdbmsDataSource::RdbmsConnection::RdbmsConnection(const DB::Connection * con, ti RdbmsDataSource::RdbmsConnection::~RdbmsConnection() { + connection->finish(); delete connection; } |