Fixed: Memory leak in Ensure.That

This commit is contained in:
kayone 2013-11-30 15:53:07 -08:00
parent f1f13e6248
commit a7d5b3761b
15 changed files with 93 additions and 91 deletions

View file

@ -33,7 +33,7 @@ namespace NzbDrone.Core.Messaging.Commands
public void PublishCommand<TCommand>(TCommand command) where TCommand : Command
{
Ensure.That(() => command).IsNotNull();
Ensure.That(command, () => command).IsNotNull();
_logger.Trace("Publishing {0}", command.GetType().Name);
@ -56,7 +56,7 @@ namespace NzbDrone.Core.Messaging.Commands
public Command PublishCommandAsync<TCommand>(TCommand command) where TCommand : Command
{
Ensure.That(() => command).IsNotNull();
Ensure.That(command, () => command).IsNotNull();
_logger.Trace("Publishing {0}", command.GetType().Name);