aboutsummaryrefslogtreecommitdiff
path: root/src/planner-eds.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-01-28 18:40:13 -0600
committerCharles Kerr <charles.kerr@canonical.com>2014-01-28 18:40:13 -0600
commit65b58035b31bde014bc206ae23a6fac83e9bf3b9 (patch)
treeb65656af69f57c7e27b1ec725442b925e68cbf72 /src/planner-eds.cpp
parent416e13070bc73824999ad430cb9f264192c76296 (diff)
downloadayatana-indicator-datetime-65b58035b31bde014bc206ae23a6fac83e9bf3b9.tar.gz
ayatana-indicator-datetime-65b58035b31bde014bc206ae23a6fac83e9bf3b9.tar.bz2
ayatana-indicator-datetime-65b58035b31bde014bc206ae23a6fac83e9bf3b9.zip
fix Task leak found by valgrind testing
Diffstat (limited to 'src/planner-eds.cpp')
-rw-r--r--src/planner-eds.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/planner-eds.cpp b/src/planner-eds.cpp
index db5d1ba..1fb0bd1 100644
--- a/src/planner-eds.cpp
+++ b/src/planner-eds.cpp
@@ -279,6 +279,7 @@ private:
std::shared_ptr<Task> main_task(new Task(this, func), [](Task* task){
g_debug("time to delete task %p", (void*)task);
task->func(task->appointments);
+ delete task;
});
for (auto& source : m_sources)