From c715b258e2d486ee4d95da7d495fd1567770fdf6 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 21 Jun 2010 15:12:50 +0000 Subject: Both Bu::Variant and Bu::MiniCron failed to cleanup behind themselves in some cases. This has been fixed. --- src/minicron.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/minicron.cpp') diff --git a/src/minicron.cpp b/src/minicron.cpp index 35df189..8aace26 100644 --- a/src/minicron.cpp +++ b/src/minicron.cpp @@ -17,6 +17,10 @@ Bu::MiniCron::MiniCron() : Bu::MiniCron::~MiniCron() { + while( !hJobs.isEmpty() ) + { + delete hJobs.dequeue(); + } } bool Bu::MiniCron::hasJobs() -- cgit v1.2.3