dispose image magick environment on shutdown

This commit is contained in:
Luke Pulverenti
2015-02-22 00:45:29 -05:00
parent baed94cee6
commit a0c6c259e6
5 changed files with 6 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
using MediaBrowser.Common.Implementations.Logging;
using ImageMagickSharp;
using MediaBrowser.Common.Implementations.Logging;
using MediaBrowser.Model.Logging;
using MediaBrowser.Server.Implementations;
using MediaBrowser.Server.Startup.Common;
@@ -40,7 +41,7 @@ namespace MediaBrowser.ServerApplication
var applicationPath = currentProcess.MainModule.FileName;
ImageMagickSharp.Wand.SetMagickCoderModulePath(Path.Combine(Path.GetDirectoryName(applicationPath), "ImageMagickCoders", "x86"));
Wand.SetMagickCoderModulePath(Path.Combine(Path.GetDirectoryName(applicationPath), "ImageMagickCoders", "x86"));
var appPaths = CreateApplicationPaths(applicationPath, _isRunningAsService);
var logManager = new NlogManager(appPaths.LogDirectoryPath, "server");