diff options
Diffstat (limited to 'src/db/plugins/simple/Directory.cxx')
-rw-r--r-- | src/db/plugins/simple/Directory.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/db/plugins/simple/Directory.cxx b/src/db/plugins/simple/Directory.cxx index a1f2d15e4..27602afc2 100644 --- a/src/db/plugins/simple/Directory.cxx +++ b/src/db/plugins/simple/Directory.cxx @@ -45,6 +45,11 @@ Directory::Directory(std::string &&_path_utf8, Directory *_parent) noexcept Directory::~Directory() noexcept { + if (mounted_database != nullptr) { + mounted_database->Close(); + mounted_database.reset(); + } + songs.clear_and_dispose(Song::Disposer()); children.clear_and_dispose(DeleteDisposer()); } |