diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-06 17:52:33 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-06 17:52:33 +0200 |
commit | 1803924a9474af03bf24bc00303c6373fdd05487 (patch) | |
tree | 25c77a9c4c8831d93ffe687d49a3aefaa5a184ca /common/listener.cpp | |
parent | 141f945b8d6828372e8919e954fa2d8991aa1a6f (diff) | |
download | sink-1803924a9474af03bf24bc00303c6373fdd05487.tar.gz sink-1803924a9474af03bf24bc00303c6373fdd05487.zip |
Fixed a bunch of memory leaks.
Found with valgrind
Diffstat (limited to 'common/listener.cpp')
-rw-r--r-- | common/listener.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/listener.cpp b/common/listener.cpp index d2fc510..32c57ac 100644 --- a/common/listener.cpp +++ b/common/listener.cpp | |||
@@ -85,6 +85,11 @@ Listener::Listener(const QByteArray &resourceInstanceIdentifier, const QByteArra | |||
85 | 85 | ||
86 | Listener::~Listener() | 86 | Listener::~Listener() |
87 | { | 87 | { |
88 | closeAllConnections(); | ||
89 | delete m_resource; | ||
90 | delete m_checkConnectionsTimer; | ||
91 | delete m_clientBufferProcessesTimer; | ||
92 | delete m_server; | ||
88 | } | 93 | } |
89 | 94 | ||
90 | void Listener::emergencyAbortAllConnections() | 95 | void Listener::emergencyAbortAllConnections() |