diff --git a/src/db/plugins/simple/SimpleDatabasePlugin.cxx b/src/db/plugins/simple/SimpleDatabasePlugin.cxx index 326200a6b..b0ac24c20 100644 --- a/src/db/plugins/simple/SimpleDatabasePlugin.cxx +++ b/src/db/plugins/simple/SimpleDatabasePlugin.cxx @@ -208,11 +208,11 @@ try { borrowed_song_count = 0; #endif - if (!Load(error)) { - delete root; + Error error2; + if (!Load(error2)) { + LogError(error2); - LogError(error); - error.Clear(); + delete root; if (!Check(error)) return false;