1
0
mirror of https://github.com/itay-grudev/SingleApplication.git synced 2025-03-30 00:52:39 +08:00

Fix memory leak on SingleApplicationPrivate destruction ()

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();