diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-01-28 18:40:13 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-01-28 18:40:13 -0600 |
commit | 65b58035b31bde014bc206ae23a6fac83e9bf3b9 (patch) | |
tree | b65656af69f57c7e27b1ec725442b925e68cbf72 | |
parent | 416e13070bc73824999ad430cb9f264192c76296 (diff) | |
download | ayatana-indicator-datetime-65b58035b31bde014bc206ae23a6fac83e9bf3b9.tar.gz ayatana-indicator-datetime-65b58035b31bde014bc206ae23a6fac83e9bf3b9.tar.bz2 ayatana-indicator-datetime-65b58035b31bde014bc206ae23a6fac83e9bf3b9.zip |
fix Task leak found by valgrind testing
-rw-r--r-- | src/planner-eds.cpp | 1 |
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) |