aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorretmas <retmas@users.noreply.github.com>2017-01-30 21:38:16 +0400
committerItay Grudev <itay-grudev@users.noreply.github.com>2017-01-30 17:38:16 +0000
commitb0078af7d32da4384347b55c4d57b516a2142fd6 (patch)
treea78263553842b1032b2f2579bd8a6db6299f22b7
parentv3.0.4a (diff)
downloadsingleapplication-b0078af7d32da4384347b55c4d57b516a2142fd6.tar.xz
Fix memory leak on SingleApplicationPrivate destruction (#23)
The issue is non critical as if the library is used properly this destructor is not called until the end of the program anyway.
-rw-r--r--singleapplication.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/singleapplication.cpp b/singleapplication.cpp
index 7857440..bb50f49 100644
--- a/singleapplication.cpp
+++ b/singleapplication.cpp
@@ -239,6 +239,7 @@ void SingleApplicationPrivate::cleanUp() {
InstancesInfo* inst = (InstancesInfo*)memory->data();
if( server != nullptr ) {
server->close();
+ delete server;
inst->primary = false;
}
memory->unlock();