summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2013-03-22 02:46:17 -0700
committerPatrick Ohly <patrick.ohly@intel.com>2013-05-06 16:28:11 +0200
commit930f5fa71ae9fbb82320cdda49c48693809b68fc (patch)
tree19e6e98295e511e3467dcc1aca62dc2fcf98b3c3 /src
parent132e9156249912a08c354431c55015827cf2be1a (diff)
TransportAgent: destructor must be virtual
The destructor must be virtual, otherwise destructors in dervived classes are not getting called when destructing via a downcasted pointer. Should be relevant, but did not show up in valgrind?!
Diffstat (limited to 'src')
-rw-r--r--src/syncevo/TransportAgent.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/syncevo/TransportAgent.h b/src/syncevo/TransportAgent.h
index c16456bc..adfe65ec 100644
--- a/src/syncevo/TransportAgent.h
+++ b/src/syncevo/TransportAgent.h
@@ -46,6 +46,8 @@ class SyncConfig;
class TransportAgent
{
public:
+ virtual ~TransportAgent() {}
+
/**
* set transport specific URL of next message
*/