Skip to content

Commit

Permalink
dispose MagickImage in verification
Browse files Browse the repository at this point in the history
  • Loading branch information
dabutvin committed Jan 16, 2019
1 parent 8c7116d commit cd8251b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CompressImagesFunction/CompressImages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public static bool Run(CompressimagesParameters parameters, ILogger logger)
{
foreach (var image in optimizedImages)
{
new MagickImage(image.OriginalPath);
new MagickImage(image.OriginalPath).Dispose();
}
}
catch (MagickCorruptImageErrorException)
Expand Down

0 comments on commit cd8251b

Please sign in to comment.