mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Detect memory leaks
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user