summaryrefslogtreecommitdiff
path: root/src/Instance.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-02-20 20:48:20 +0100
committerMax Kellermann <max@musicpd.org>2019-02-20 20:48:20 +0100
commit8b5c33cecdb1e41b08d8141222f6dba50a836889 (patch)
treea9c1835c7b187947598ded40ee1e0cc3ec909d7f /src/Instance.cxx
parent6c28adbcd2e0e9b78d7d68193f435e80548565fe (diff)
Instance: use std::unique_ptr<> to manage the Database pointer
Diffstat (limited to 'src/Instance.cxx')
-rw-r--r--src/Instance.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Instance.cxx b/src/Instance.cxx
index af3d01456..c2032aa7c 100644
--- a/src/Instance.cxx
+++ b/src/Instance.cxx
@@ -58,7 +58,7 @@ Instance::~Instance() noexcept
if (database != nullptr) {
database->Close();
- delete database;
+ database.reset();
}
delete storage;