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
@ -103,6 +103,5 @@ extern "C" bool canReachCloudServer()
|
||||
{
|
||||
if (verbose)
|
||||
qWarning() << "Cloud storage: checking connection to cloud server";
|
||||
CheckCloudConnection *checker = new CheckCloudConnection;
|
||||
return checker->checkServer();
|
||||
return CheckCloudConnection().checkServer();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user