aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-23 22:33:18 +0100
committerMax Kellermann <max@duempel.org>2014-01-23 22:35:22 +0100
commit3afcfe3330a447915d5c7806ce397cee418e51d0 (patch)
tree8017883504d6685b79b61db97bce2e606adf1d42 /src
parentb521d8564ad876ced16bcb5dc7c4ddab0f17b98c (diff)
downloadmpd-3afcfe3330a447915d5c7806ce397cee418e51d0.tar.gz
mpd-3afcfe3330a447915d5c7806ce397cee418e51d0.tar.xz
mpd-3afcfe3330a447915d5c7806ce397cee418e51d0.zip
db/upnp/Discovery: un-inline the destructor
Diffstat (limited to 'src')
-rw-r--r--src/db/upnp/Discovery.cxx5
-rw-r--r--src/db/upnp/Discovery.hxx1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/db/upnp/Discovery.cxx b/src/db/upnp/Discovery.cxx
index 807308a12..5eaf054f5 100644
--- a/src/db/upnp/Discovery.cxx
+++ b/src/db/upnp/Discovery.cxx
@@ -192,6 +192,11 @@ UPnPDeviceDirectory::UPnPDeviceDirectory(LibUPnP *_lib)
{
}
+UPnPDeviceDirectory::~UPnPDeviceDirectory()
+{
+ /* this destructor exists here just so it won't get inlined */
+}
+
bool
UPnPDeviceDirectory::Start(Error &error)
{
diff --git a/src/db/upnp/Discovery.hxx b/src/db/upnp/Discovery.hxx
index a45163e9b..78d905369 100644
--- a/src/db/upnp/Discovery.hxx
+++ b/src/db/upnp/Discovery.hxx
@@ -102,6 +102,7 @@ class UPnPDeviceDirectory {
public:
UPnPDeviceDirectory(LibUPnP *_lib);
+ ~UPnPDeviceDirectory();
UPnPDeviceDirectory(const UPnPDeviceDirectory &) = delete;
UPnPDeviceDirectory& operator=(const UPnPDeviceDirectory &) = delete;