~charlesk/indicator-datetime/cpp

« back to all changes in this revision

Viewing changes to src/planner-eds.cpp

  • Committer: Charles Kerr
  • Date: 2014-01-29 00:40:13 UTC
  • Revision ID: charles.kerr@canonical.com-20140129004013-e921t3nqd2j7kn4w
fix Task leak found by valgrind testing

Show diffs side-by-side

added added

removed removed

Lines of Context:
279
279
        std::shared_ptr<Task> main_task(new Task(this, func), [](Task* task){
280
280
            g_debug("time to delete task %p", (void*)task);
281
281
            task->func(task->appointments);
 
282
            delete task;
282
283
        });
283
284
 
284
285
        for (auto& source : m_sources)