summaryrefslogtreecommitdiff
path: root/src/Instance.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-02-15 18:20:11 +0100
committerMax Kellermann <max@musicpd.org>2019-02-15 18:20:11 +0100
commitf70eb638793daa6769fb3ddcdc11133e9aaa79ea (patch)
tree4f6e0b11be48a1d5572ce467c596e22168357b09 /src/Instance.cxx
parent99c23cf13993cde427f66a9dd6e433bdc7c63963 (diff)
Instance: eliminate FinishShutdownUpdate(), move code to destructor
Diffstat (limited to 'src/Instance.cxx')
-rw-r--r--src/Instance.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Instance.cxx b/src/Instance.cxx
index a66244f5b..af3d01456 100644
--- a/src/Instance.cxx
+++ b/src/Instance.cxx
@@ -31,6 +31,7 @@
#ifdef ENABLE_DATABASE
#include "db/DatabaseError.hxx"
#include "db/Interface.hxx"
+#include "db/update/Service.hxx"
#include "storage/StorageInterface.hxx"
#ifdef ENABLE_SQLITE
@@ -53,6 +54,8 @@ Instance::Instance()
Instance::~Instance() noexcept
{
#ifdef ENABLE_DATABASE
+ delete update;
+
if (database != nullptr) {
database->Close();
delete database;