2
0
Fork 1
mirror of https://github.com/FossifyOrg/Gallery.git synced 2025-04-22 03:09:48 +02:00

Merge pull request from DaPa/master

Avoid SQLite connection object leaking
This commit is contained in:
Tibor Kaputa 2021-06-18 10:01:44 +02:00 committed by GitHub
commit df7c6e6501
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,6 +44,9 @@ abstract class GalleryDatabase : RoomDatabase() {
}
fun destroyInstance() {
if (db?.isOpen == true) {
db?.close()
}
db = null
}