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.
This commit is contained in:
retmas 2017-01-30 21:38:16 +04:00 committed by Itay Grudev
parent 253b396e88
commit b0078af7d3

View File

@ -239,6 +239,7 @@ void SingleApplicationPrivate::cleanUp() {
InstancesInfo* inst = (InstancesInfo*)memory->data();
if( server != nullptr ) {
server->close();
delete server;
inst->primary = false;
}
memory->unlock();