mirror of
https://github.com/transmission/transmission
synced 2024-12-29 02:56:11 +00:00
Fixed memory leak in BlocklistDownloader (#4309)
This commit is contained in:
parent
7aad5870ce
commit
ec1e679395
1 changed files with 2 additions and 0 deletions
|
@ -94,6 +94,7 @@ BlocklistDownloader* fBLDownloader = nil;
|
||||||
[NSUserDefaults.standardUserDefaults setObject:[NSDate date] forKey:@"BlocklistNewLastUpdate"];
|
[NSUserDefaults.standardUserDefaults setObject:[NSDate date] forKey:@"BlocklistNewLastUpdate"];
|
||||||
[BlocklistScheduler.scheduler updateSchedule];
|
[BlocklistScheduler.scheduler updateSchedule];
|
||||||
|
|
||||||
|
[self.fSession finishTasksAndInvalidate];
|
||||||
fBLDownloader = nil;
|
fBLDownloader = nil;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -153,6 +154,7 @@ BlocklistDownloader* fBLDownloader = nil;
|
||||||
|
|
||||||
[NSNotificationCenter.defaultCenter postNotificationName:@"BlocklistUpdated" object:nil];
|
[NSNotificationCenter.defaultCenter postNotificationName:@"BlocklistUpdated" object:nil];
|
||||||
|
|
||||||
|
[self.fSession finishTasksAndInvalidate];
|
||||||
fBLDownloader = nil;
|
fBLDownloader = nil;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue