Use sqlite3_close_v2

This commit is contained in:
Gwendal Roué committed 2016-05-07 11:34:18 +02:00
1 parent 96f8a57f44
commit b237df4b6d
1 file changed
+2 -2
+2 -2
View File
@@ -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() {