mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Add cleanup function to mac pdf image buffer
This commit is contained in:
@ -627,9 +627,6 @@ void ThumbnailCreator::create()
|
||||
{
|
||||
#if defined Q_OS_MAC || defined USE_PDFIUM
|
||||
QImage p = pdfComic->getPage(_coverPage-1); //TODO check if the page is valid
|
||||
#ifdef USE_PDFKIT
|
||||
pdfComic->releaseLastPageData();
|
||||
#endif
|
||||
#else
|
||||
QImage p = pdfComic->page(_coverPage-1)->renderToImage(72,72);
|
||||
#endif //
|
||||
|
Reference in New Issue
Block a user