From b237df4b6dc0ff8f8a0fdac43c91532ff6b2a28f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 7 May 2016 11:34:18 +0200 Subject: [PATCH] Use sqlite3_close_v2 --- GRDB/Core/Database.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GRDB/Core/Database.swift b/GRDB/Core/Database.swift index 3743532ff..9d6968489 100644 --- a/GRDB/Core/Database.swift +++ b/GRDB/Core/Database.swift @@ -120,7 +120,7 @@ public final class Database { } } catch { // deinit is not called: close connection - sqlite3_close(sqliteConnection) + sqlite3_close_v2(sqliteConnection) throw error } #endif @@ -142,7 +142,7 @@ public final class Database { deinit { configuration.SQLiteConnectionDidClose?() - sqlite3_close(sqliteConnection) + sqlite3_close_v2(sqliteConnection) } func releaseMemory() {