mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2024-11-15 12:15:43 +08:00
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:
parent
253b396e88
commit
b0078af7d3
@ -239,6 +239,7 @@ void SingleApplicationPrivate::cleanUp() {
|
||||
InstancesInfo* inst = (InstancesInfo*)memory->data();
|
||||
if( server != nullptr ) {
|
||||
server->close();
|
||||
delete server;
|
||||
inst->primary = false;
|
||||
}
|
||||
memory->unlock();
|
||||
|
Loading…
Reference in New Issue
Block a user