summaryrefslogtreecommitdiff
path: root/src/Instance.cxx
diff options
context:
space:
mode:
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;