Fix leak in CloudProviderManager
authorStephan Beyer <s-beyer@gmx.net>
Fri, 15 May 2020 23:10:34 +0000 (01:10 +0200)
committerStephan Beyer <s-beyer@gmx.net>
Wed, 20 May 2020 23:22:15 +0000 (01:22 +0200)
commiteaf4aa0e5b5d17b2061aa5ae9d0edce968f5a1e5
tree7b54ab94ad4c57ed1ed5c7a1efe98c2344888115
parent71a474129b94820f7d78919a92598c2828f9d6aa
Fix leak in CloudProviderManager

The member _map, allocated in the constructor, was leaking.

The ad-hoc way to fix the leak would have been to add a destructor
that deletes _map.  However, there is no good reason why _map has
to be a pointer to a QMap (instead of a QMap).
Hence this commit changes the type of the _map member from a QMap
pointer to a QMap.

Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
src/gui/cloudproviders/cloudprovidermanager.cpp
src/gui/cloudproviders/cloudprovidermanager.h