diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-06-21 15:12:50 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-06-21 15:12:50 +0000 |
commit | c715b258e2d486ee4d95da7d495fd1567770fdf6 (patch) | |
tree | faefc8713b16f763a2aee5652d8b3163b56a5688 /src/minicron.cpp | |
parent | 6778ed99fe197a05bd109eab1ec047ddcba07ca4 (diff) | |
download | libbu++-c715b258e2d486ee4d95da7d495fd1567770fdf6.tar.gz libbu++-c715b258e2d486ee4d95da7d495fd1567770fdf6.tar.bz2 libbu++-c715b258e2d486ee4d95da7d495fd1567770fdf6.tar.xz libbu++-c715b258e2d486ee4d95da7d495fd1567770fdf6.zip |
Both Bu::Variant and Bu::MiniCron failed to cleanup behind themselves in some
cases. This has been fixed.
Diffstat (limited to '')
-rw-r--r-- | src/minicron.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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() : | |||
17 | 17 | ||
18 | Bu::MiniCron::~MiniCron() | 18 | Bu::MiniCron::~MiniCron() |
19 | { | 19 | { |
20 | while( !hJobs.isEmpty() ) | ||
21 | { | ||
22 | delete hJobs.dequeue(); | ||
23 | } | ||
20 | } | 24 | } |
21 | 25 | ||
22 | bool Bu::MiniCron::hasJobs() | 26 | bool Bu::MiniCron::hasJobs() |