diff options
author | Max Kellermann <max@musicpd.org> | 2019-02-20 20:48:20 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-02-20 20:48:20 +0100 |
commit | 8b5c33cecdb1e41b08d8141222f6dba50a836889 (patch) | |
tree | a9c1835c7b187947598ded40ee1e0cc3ec909d7f /src/Instance.cxx | |
parent | 6c28adbcd2e0e9b78d7d68193f435e80548565fe (diff) |
Instance: use std::unique_ptr<> to manage the Database pointer
Diffstat (limited to 'src/Instance.cxx')
-rw-r--r-- | src/Instance.cxx | 2 |
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; |