summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/today/today.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 58ba4f4..aef0a9b 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -146,6 +146,7 @@ void Today::draw() {
// if the todolist.xml file was not modified in between, do not parse it.
if (checkIfModified()) {
+ if (todo) delete todo;
todo = new ToDoDB;
getTodo();
}