mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-11 17:59:17 +00:00
..
This commit is contained in:
@@ -23,11 +23,18 @@ namespace QuickLook.Plugin.PDFViewer
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
GC.SuppressFinalize(this);
|
||||
|
||||
LibMuPdf.NativeMethods.CloseDocument(_doc);
|
||||
LibMuPdf.NativeMethods.CloseStream(_stm);
|
||||
LibMuPdf.NativeMethods.FreeContext(_ctx);
|
||||
}
|
||||
|
||||
~PdfFile()
|
||||
{
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public bool IsLastPage(int pageId)
|
||||
{
|
||||
return pageId >= TotalPages;
|
||||
|
Reference in New Issue
Block a user