Commit 0a5629d3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix mem leak found by ASAN

parent 554f6c7a
Pipeline #25031 passed with stage
in 23 minutes and 50 seconds
......@@ -120,6 +120,11 @@ IncidenceResource::IncidenceResource(IncidenceAttendee *ieAttendee, IncidenceDat
&IncidenceResource::updateCount);
}
IncidenceResource::~IncidenceResource()
{
delete resourceDialog;
}
void IncidenceResource::load(const KCalendarCore::Incidence::Ptr &incidence)
{
Q_UNUSED(incidence);
......
......@@ -44,6 +44,7 @@ public:
using IncidenceEditorNG::IncidenceEditor::load; // So we don't trigger -Woverloaded-virtual
explicit IncidenceResource(IncidenceAttendee *mIeAttendee, IncidenceDateTime *dateTime, Ui::EventOrTodoDesktop *ui);
~IncidenceResource();
void load(const KCalendarCore::Incidence::Ptr &incidence) override;
void save(const KCalendarCore::Incidence::Ptr &incidence) override;
......
......@@ -151,7 +151,7 @@ ResourceManagement::ResourceManagement(QWidget *parent)
attrs << QStringLiteral("cn") << QStringLiteral("mail")
<< QStringLiteral("owner") << QStringLiteral("givenname") << QStringLiteral("sn")
<< QStringLiteral("kolabDescAttribute") << QStringLiteral("description");
ResourceModel *resourcemodel = new ResourceModel(attrs);
ResourceModel *resourcemodel = new ResourceModel(attrs, this);
mUi->treeResults->setModel(resourcemodel);
// This doesn't work till now :(-> that's why i use the click signal
......
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