Commit 78be4d8f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix mem leak found by ASAN

parent 6daad978
Pipeline #25075 passed with stage
in 18 minutes and 26 seconds
......@@ -57,7 +57,7 @@ CalPrinter::CalPrinter(QWidget *parent, const Akonadi::ETMCalendar::Ptr &calenda
CalPrinter::~CalPrinter()
{
mPrintPlugins.clear();
qDeleteAll(mPrintPlugins);
delete mConfig;
}
......@@ -65,6 +65,7 @@ void CalPrinter::init(const Akonadi::ETMCalendar::Ptr &calendar)
{
mCalendar = calendar;
qDeleteAll(mPrintPlugins);
mPrintPlugins.clear();
if (!mUniqItem) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment