mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2025-04-21 04:24:43 +08:00
Fix a crash when exiting an application on Android and iOS
This commit is contained in:
parent
4baf2e74f6
commit
b4a1f19d81
@ -69,6 +69,7 @@ SingleApplicationPrivate::~SingleApplicationPrivate()
|
|||||||
delete socket;
|
delete socket;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( memory != nullptr ) {
|
||||||
memory->lock();
|
memory->lock();
|
||||||
InstancesInfo* inst = static_cast<InstancesInfo*>(memory->data());
|
InstancesInfo* inst = static_cast<InstancesInfo*>(memory->data());
|
||||||
if( server != nullptr ) {
|
if( server != nullptr ) {
|
||||||
@ -82,6 +83,7 @@ SingleApplicationPrivate::~SingleApplicationPrivate()
|
|||||||
memory->unlock();
|
memory->unlock();
|
||||||
|
|
||||||
delete memory;
|
delete memory;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QString SingleApplicationPrivate::getUsername()
|
QString SingleApplicationPrivate::getUsername()
|
||||||
|
Loading…
Reference in New Issue
Block a user