This commit is contained in:
Paddy Xu
2017-08-06 17:27:30 +03:00
parent 3a20245304
commit 5b97e7ef60
17 changed files with 243 additions and 23 deletions

View File

@@ -92,7 +92,8 @@ namespace QuickLook.Plugin.PDFViewer
{
GC.SuppressFinalize(this);
_pdfControl.CurrentPageChanged -= UpdateVindowCaption;
if (_pdfControl != null)
_pdfControl.CurrentPageChanged -= UpdateVindowCaption;
_pdfControl?.Dispose();
_pdfControl = null;