mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-29 19:28:27 -07:00
Fixed: Memory leak in Ensure.That
This commit is contained in:
parent
f1f13e6248
commit
a7d5b3761b
15 changed files with 93 additions and 91 deletions
|
@ -57,9 +57,9 @@ namespace NzbDrone.Core.MediaFiles
|
|||
|
||||
private void MoveFile(EpisodeFile episodeFile, Series series, string destinationFilename)
|
||||
{
|
||||
Ensure.That(() => episodeFile).IsNotNull();
|
||||
Ensure.That(() => series).IsNotNull();
|
||||
Ensure.That(() => destinationFilename).IsValidPath();
|
||||
Ensure.That(episodeFile, () => episodeFile).IsNotNull();
|
||||
Ensure.That(series,() => series).IsNotNull();
|
||||
Ensure.That(destinationFilename, () => destinationFilename).IsValidPath();
|
||||
|
||||
if (!_diskProvider.FileExists(episodeFile.Path))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue