From d5e59956d359b156e086e7ce36a2b6cb358d3c5c Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 7 Oct 2012 14:22:34 +0000 Subject: WinGui: Fix an exception when shutting down. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5004 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/Services/ScanServiceWrapper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'win/CS/HandBrakeWPF/Services/ScanServiceWrapper.cs') diff --git a/win/CS/HandBrakeWPF/Services/ScanServiceWrapper.cs b/win/CS/HandBrakeWPF/Services/ScanServiceWrapper.cs index ffbbae5c0..9cb6707f9 100644 --- a/win/CS/HandBrakeWPF/Services/ScanServiceWrapper.cs +++ b/win/CS/HandBrakeWPF/Services/ScanServiceWrapper.cs @@ -33,7 +33,7 @@ namespace HandBrakeWPF.Services /// /// The handbrake instance. /// - public static readonly IHandBrakeInstance HandbrakeInstance = new HandBrakeInstance(); + public static IHandBrakeInstance HandbrakeInstance; /// /// The scan service. @@ -67,6 +67,7 @@ namespace HandBrakeWPF.Services } else { + HandbrakeInstance = new HandBrakeInstance(); this.scanService = new LibScan(userSettingService, HandbrakeInstance); } } -- cgit v1.2.3