summaryrefslogtreecommitdiff
path: root/src/Main.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-02-20 20:32:11 +0100
committerMax Kellermann <max@musicpd.org>2019-02-20 20:43:31 +0100
commit6c28adbcd2e0e9b78d7d68193f435e80548565fe (patch)
treeee19b60447a91cd04683b1e55507c6a5ec2afcd7 /src/Main.cxx
parent2125e3ed5708898f18da21a33ddd7b4d3ea9c41e (diff)
db/Plugin: use std::unique_ptr<> to manage Database pointers
Diffstat (limited to 'src/Main.cxx')
-rw-r--r--src/Main.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index 77b20d82d..89b6eaf8f 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -188,7 +188,7 @@ glue_db_init_and_load(const ConfigData &config)
instance->database =
CreateConfiguredDatabase(config, instance->event_loop,
instance->io_thread.GetEventLoop(),
- *instance);
+ *instance).release();
if (instance->database == nullptr)
return true;