1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 18:18:10 +00:00

Fixed memory leak in BlocklistDownloader (#4309)

This commit is contained in:
Cœur 2022-12-12 23:12:04 +08:00 committed by GitHub
parent 7aad5870ce
commit ec1e679395
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,6 +94,7 @@ BlocklistDownloader* fBLDownloader = nil;
[NSUserDefaults.standardUserDefaults setObject:[NSDate date] forKey:@"BlocklistNewLastUpdate"];
[BlocklistScheduler.scheduler updateSchedule];
[self.fSession finishTasksAndInvalidate];
fBLDownloader = nil;
});
}
@ -153,6 +154,7 @@ BlocklistDownloader* fBLDownloader = nil;
[NSNotificationCenter.defaultCenter postNotificationName:@"BlocklistUpdated" object:nil];
[self.fSession finishTasksAndInvalidate];
fBLDownloader = nil;
});
}