From b0078af7d32da4384347b55c4d57b516a2142fd6 Mon Sep 17 00:00:00 2001 From: retmas Date: Mon, 30 Jan 2017 21:38:16 +0400 Subject: 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. --- singleapplication.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'singleapplication.cpp') 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(); -- cgit v1.2.1