diff --git a/src/Dibi/Drivers/SqliteResult.php b/src/Dibi/Drivers/SqliteResult.php index 686d8b00..199398f4 100644 --- a/src/Dibi/Drivers/SqliteResult.php +++ b/src/Dibi/Drivers/SqliteResult.php @@ -38,8 +38,11 @@ public function __construct(\SQLite3Result $resultSet) */ public function __destruct() { - if ($this->autoFree && $this->getResultResource()) { - @$this->free(); + if ($this->autoFree) { + try { + $this->free(); + } catch (\Error $e) { + } } }