mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Allocate CheckCloudConnection object on stack
Fixes a memory leak: CheckCloudConnection was allocated on the heap, but never deleted. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
0964d1a9b0
commit
4816ca43bb
1 changed files with 1 additions and 2 deletions
|
@ -103,6 +103,5 @@ extern "C" bool canReachCloudServer()
|
||||||
{
|
{
|
||||||
if (verbose)
|
if (verbose)
|
||||||
qWarning() << "Cloud storage: checking connection to cloud server";
|
qWarning() << "Cloud storage: checking connection to cloud server";
|
||||||
CheckCloudConnection *checker = new CheckCloudConnection;
|
return CheckCloudConnection().checkServer();
|
||||||
return checker->checkServer();
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue