-rw-r--r-- | core/pim/todo/todotable.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/pim/todo/todotable.cpp b/core/pim/todo/todotable.cpp index dc60cc4..208a084 100644 --- a/core/pim/todo/todotable.cpp +++ b/core/pim/todo/todotable.cpp @@ -642,6 +642,5 @@ void TodoTable::journalFreeReplaceEntry( const ToDoEvent &todo, int row ) static_cast<DueTextItem*>(item(row,3))->setToDoEvent(&todo ); } - ToDoEvent *ev = new ToDoEvent( todo ); - todoList.insert( static_cast<CheckItem*>(item(row,0)), new ToDoEvent(ev) ); + todoList.insert( static_cast<CheckItem*>(item(row,0)), new ToDoEvent(todo) ); } } |