Fixed db->close() and db->free_result() functions
diff --git a/system/database/drivers/pdo/pdo_driver.php b/system/database/drivers/pdo/pdo_driver.php
index 3adc5f5..18617a4 100644
--- a/system/database/drivers/pdo/pdo_driver.php
+++ b/system/database/drivers/pdo/pdo_driver.php
@@ -632,7 +632,7 @@
 	 */
 	function _close($conn_id)
 	{
-		@pdo_close($conn_id);
+		$this->conn_id = null;
 	}
 
 
diff --git a/system/database/drivers/pdo/pdo_result.php b/system/database/drivers/pdo/pdo_result.php
index c386586..5e136f5 100644
--- a/system/database/drivers/pdo/pdo_result.php
+++ b/system/database/drivers/pdo/pdo_result.php
@@ -111,9 +111,8 @@
 	 */
 	function free_result()
 	{
-		if (is_resource($this->result_id))
+		if (is_object($this->result_id))
 		{
-			pdo_free_result($this->result_id);
 			$this->result_id = FALSE;
 		}
 	}