diff -Nru kdepim-addons-17.12.3/debian/changelog kdepim-addons-17.12.3/debian/changelog --- kdepim-addons-17.12.3/debian/changelog 2018-03-16 13:26:02.000000000 +0000 +++ kdepim-addons-17.12.3/debian/changelog 2018-04-21 04:52:33.000000000 +0000 @@ -1,3 +1,9 @@ +kdepim-addons (17.12.3-0ubuntu2) bionic; urgency=high + + * Fix memory leak caused by certain calendar events (LP: #1765900). + + -- Simon Quigley Fri, 20 Apr 2018 23:52:33 -0500 + kdepim-addons (17.12.3-0ubuntu1) bionic; urgency=medium [ Rik Mills ] diff -Nru kdepim-addons-17.12.3/debian/patches/fix-memory-leak-with-calendar-events.patch kdepim-addons-17.12.3/debian/patches/fix-memory-leak-with-calendar-events.patch --- kdepim-addons-17.12.3/debian/patches/fix-memory-leak-with-calendar-events.patch 1970-01-01 00:00:00.000000000 +0000 +++ kdepim-addons-17.12.3/debian/patches/fix-memory-leak-with-calendar-events.patch 2018-04-21 04:52:33.000000000 +0000 @@ -0,0 +1,22 @@ +Description: Fix an issue which causes Plasma to freeze when there is an agenda item with no start date in the calendar +Author: Kai Uwe Broulik +Bug: https://bugs.kde.org/show_bug.cgi?id=367541 +Bug-Ubuntu: https://bugs.launchpad.net/bugs/1765900 +Applied-Upstream: commit:af23ae +Last-Update: 2018-04-20 +--- a/plugins/plasma/pimeventsplugin/eventdatavisitor.cpp ++++ b/plugins/plasma/pimeventsplugin/eventdatavisitor.cpp +@@ -170,6 +170,13 @@ void EventDataVisitor::insertResult(cons + { + QDate d = result.startDateTime().date(); + const QDate end = result.endDateTime().date(); ++ ++ // Agenda without start date will be placed at the end (due) date ++ if (!d.isValid()) { ++ mResults.insert(end, result); ++ return; ++ } ++ + while (d <= end) { + mResults.insert(d, result); + d = d.addDays(1); diff -Nru kdepim-addons-17.12.3/debian/patches/series kdepim-addons-17.12.3/debian/patches/series --- kdepim-addons-17.12.3/debian/patches/series 2018-03-16 13:26:02.000000000 +0000 +++ kdepim-addons-17.12.3/debian/patches/series 2018-04-21 04:51:05.000000000 +0000 @@ -1,2 +1,3 @@ remove_sh_extensions spambayes.patch +fix-memory-leak-with-calendar-events.patch