Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM IncidenceEditor
Commits
0a5629d3
Commit
0a5629d3
authored
Jun 25, 2020
by
Laurent Montel
😁
Browse files
Fix mem leak found by ASAN
parent
554f6c7a
Pipeline
#25031
passed with stage
in 23 minutes and 50 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/incidenceresource.cpp
View file @
0a5629d3
...
...
@@ -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
);
...
...
src/incidenceresource.h
View file @
0a5629d3
...
...
@@ -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
;
...
...
src/resourcemanagement.cpp
View file @
0a5629d3
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment