summaryrefslogtreecommitdiff
path: root/src/CommonAPI/DBus/DBusFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/CommonAPI/DBus/DBusFactory.cpp')
-rw-r--r--src/CommonAPI/DBus/DBusFactory.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CommonAPI/DBus/DBusFactory.cpp b/src/CommonAPI/DBus/DBusFactory.cpp
index cde564e..64c39d4 100644
--- a/src/CommonAPI/DBus/DBusFactory.cpp
+++ b/src/CommonAPI/DBus/DBusFactory.cpp
@@ -21,6 +21,10 @@ INITIALIZER(FactoryInit) {
Runtime::get()->registerFactory("dbus", Factory::get());
}
+DEINITIALIZER(FactoryDeinit) {
+ Runtime::get()->unregisterFactory("dbus");
+}
+
std::shared_ptr<CommonAPI::DBus::Factory>
Factory::get() {
static std::shared_ptr<Factory> theFactory = std::make_shared<Factory>();