mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
Merge pull request #2159 from DaPa/master
Avoid SQLite connection object leaking
This commit is contained in:
@ -44,6 +44,9 @@ abstract class GalleryDatabase : RoomDatabase() {
|
||||
}
|
||||
|
||||
fun destroyInstance() {
|
||||
if (db?.isOpen == true) {
|
||||
db?.close()
|
||||
}
|
||||
db = null
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user