]> pilppa.org Git - libplp.git/blobdiff - src/Device.cc
cleanups for devices with no data
[libplp.git] / src / Device.cc
index 714e830e13bcbafdda786fa10522e6339f544220..d09d53b66432c9ce28a5d4e0171424d92f0e2bb8 100644 (file)
@@ -16,6 +16,7 @@ Device::Device(string id_param,
        id                      = id_param;
        type                    = type_param;
        lifecycle_status        = LIFECYCLE_STATUS__UNAVAILABLE;
+       _cfg                    = NULL;
 }
 
 Device::Device(std::string id_param,
@@ -26,10 +27,11 @@ Device::Device(std::string id_param,
        type                    = type_param;
        name                    = name_param;
        lifecycle_status        = status_param;
+       _cfg                    = NULL;
 }
 
 //Device::~Device() {
-//     log_debug("Device: constructor\n");
+//     delete(_cfg);
 //}
 
 string Device::get_id() {