diff --git a/common/tikzpreviewgenerator.cpp b/common/tikzpreviewgenerator.cpp index c208d4b..ac6f4f4 100644 --- a/common/tikzpreviewgenerator.cpp +++ b/common/tikzpreviewgenerator.cpp @@ -72,6 +72,8 @@ TikzPreviewGenerator::~TikzPreviewGenerator() m_thread.wait(); } // Q_EMIT processRunning(false); // this causes a segmentation fault on exit on Arch Linux + + delete m_tikzPdfDoc; } /***************************************************************************/