mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +00:00
Fixed memory leak in BlocklistDownloader (#4309)
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user