From 0231dc656a3f65fd71f8e0b5c5b77d9adefda5d5 Mon Sep 17 00:00:00 2001 From: Vibhav Pant Date: Wed, 13 Sep 2023 14:23:11 +0530 Subject: [PATCH] BluezObjectManager: Mark the destructor as virtual --- internal/platform/implementation/linux/bluez.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/platform/implementation/linux/bluez.h b/internal/platform/implementation/linux/bluez.h index 4a10cbfe..55a3d02f 100644 --- a/internal/platform/implementation/linux/bluez.h +++ b/internal/platform/implementation/linux/bluez.h @@ -67,14 +67,14 @@ class BluezObjectManager : ProxyInterfaces(system_bus, "org.bluez", "/") { registerProxy(); } - ~BluezObjectManager() { unregisterProxy(); } + virtual ~BluezObjectManager() { unregisterProxy(); } protected: - void onInterfacesAdded( + void onInterfacesAdded( const sdbus::ObjectPath &objectPath, const std::map> &interfacesAndProperties) override {} - void onInterfacesRemoved( + void onInterfacesRemoved( const sdbus::ObjectPath &objectPath, const std::vector &interfaces) override {} };