summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r--system/database/DB_driver.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index ef77b594e..c757277ce 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -92,6 +92,13 @@ abstract class CI_DB_driver {
// --------------------------------------------------------------------
+ public function __destruct()
+ {
+ $this->close();
+ }
+
+ // --------------------------------------------------------------------
+
/**
* Initialize Database Settings
*