mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
gui/macOS: Avoid unnecessary retain on alloced objects
Fixes leaks Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
5813931ccf
commit
fc2cc48c87
@ -275,7 +275,6 @@ public:
|
||||
|
||||
NSFileProviderDomain * const fileProviderDomain = [[NSFileProviderDomain alloc] initWithIdentifier:domainId.toNSString()
|
||||
displayName:domainDisplayName.toNSString()];
|
||||
[fileProviderDomain retain];
|
||||
|
||||
[NSFileProviderManager addDomain:fileProviderDomain completionHandler:^(NSError * const error) {
|
||||
if(error) {
|
||||
|
||||
@ -194,7 +194,6 @@ public slots:
|
||||
[enumerator retain];
|
||||
|
||||
FileProviderStorageUseEnumerationObserver *const storageUseObserver = [[FileProviderStorageUseEnumerationObserver alloc] init];
|
||||
[storageUseObserver retain];
|
||||
storageUseObserver.enumerationFinishedHandler = ^(NSError *const error) {
|
||||
qCInfo(lcFileProviderSettingsController) << "Enumeration finished for" << domain.identifier;
|
||||
if (error != nil) {
|
||||
|
||||
@ -248,13 +248,10 @@ SparkleUpdater::SparkleUpdater(const QUrl& appCastUrl)
|
||||
, _interface(std::make_unique<SparkleInterface>(this))
|
||||
{
|
||||
_interface->delegate = [[NCSparkleUpdaterDelegate alloc] initWithOwner:_interface.get()];
|
||||
[_interface->delegate retain];
|
||||
|
||||
_interface->updaterController =
|
||||
[[SPUStandardUpdaterController alloc] initWithStartingUpdater:YES
|
||||
updaterDelegate:_interface->delegate
|
||||
userDriverDelegate:nil];
|
||||
[_interface->updaterController retain];
|
||||
|
||||
setUpdateUrl(appCastUrl);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user