Clear the vector in the destructor

If there is a fault, and the destructor is called twice, we delete the
bojects twice, and this gives really strange exceptions.
presentation
Andreas Butti 7 years ago
parent 9228ef1de1
commit 668568bbff
  1. 1
      src/pdf/popplerdirect/PdfExport.cpp

@ -48,6 +48,7 @@ PdfExport::~PdfExport()
{
delete doc;
}
documents.clear();
g_list_foreach(this->pageIds, (GFunc) g_free, NULL);
g_list_free(this->pageIds);

Loading…
Cancel
Save