Detect memory leaks

This commit is contained in:
Jakub Melka
2022-01-30 18:23:25 +01:00
parent 22c40b227c
commit 284f0c4db8
89 changed files with 227 additions and 85 deletions

View File

@ -1,4 +1,4 @@
// Copyright (C) 2019-2021 Jakub Melka
// Copyright (C) 2019-2022 Jakub Melka
//
// This file is part of PDF4QT.
//
@ -18,6 +18,7 @@
#include "pdfcms.h"
#include "pdfdocument.h"
#include "pdfexecutionpolicy.h"
#include "pdfdbgheap.h"
#include <QApplication>
#include <QReadWriteLock>
@ -1388,6 +1389,11 @@ PDFCMSManager::PDFCMSManager(QObject* parent) :
}
void PDFCMSManager::finalize()
{
cmsUnregisterPlugins();
}
PDFCMSPointer PDFCMSManager::getCurrentCMS() const
{
QMutexLocker lock(&m_mutex);