aboutsummaryrefslogtreecommitdiff
path: root/src/variant.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-06-21 15:12:50 +0000
committerMike Buland <eichlan@xagasoft.com>2010-06-21 15:12:50 +0000
commitc715b258e2d486ee4d95da7d495fd1567770fdf6 (patch)
treefaefc8713b16f763a2aee5652d8b3163b56a5688 /src/variant.cpp
parent6778ed99fe197a05bd109eab1ec047ddcba07ca4 (diff)
downloadlibbu++-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 'src/variant.cpp')
-rw-r--r--src/variant.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/variant.cpp b/src/variant.cpp
index 9665261..6b304ba 100644
--- a/src/variant.cpp
+++ b/src/variant.cpp
@@ -36,6 +36,11 @@ Bu::Variant::Variant( const Variant &v ) :
36 36
37Bu::Variant::~Variant() 37Bu::Variant::~Variant()
38{ 38{
39 if( pCore )
40 {
41 delete pCore;
42 pCore = NULL;
43 }
39} 44}
40 45
41bool Bu::Variant::isSet() 46bool Bu::Variant::isSet()