diff --git a/src/db/update/Archive.cxx b/src/db/update/Archive.cxx index 6d47ae0d1..0d7127685 100644 --- a/src/db/update/Archive.cxx +++ b/src/db/update/Archive.cxx @@ -123,6 +123,8 @@ UpdateWalk::UpdateArchiveFile(Directory &parent, const char *name, ArchiveFile *file = archive_file_open(&plugin, path_fs.c_str(), error); if (file == nullptr) { LogError(error); + if (directory != nullptr) + editor.LockDeleteDirectory(directory); return; }