1
0

Add destructor for pdfworker renderer

Este cometimento está contido em:
Albert S. 2019-04-29 22:44:39 +02:00
ascendente 4c8d201f81
cometimento 78fb075739

Ver ficheiro

@ -21,6 +21,12 @@ struct Renderer
this->scaleX = scaleX;
this->scaleY = scaleY;
}
~Renderer()
{
qDeleteAll(documentcache);
}
Poppler::Document *document(QString path)
{
if(documentcache.contains(path))
@ -29,6 +35,7 @@ struct Renderer
Poppler::Document *result = Poppler::Document::load(path);
if(result == nullptr)
{
// TODO: some kind of user feedback would be nicec
return nullptr;
}
result->setRenderHint(Poppler::Document::TextAntialiasing);