diff --git a/src/core/smartparser.cpp b/src/core/smartparser.cpp index 7213355..294691e 100644 --- a/src/core/smartparser.cpp +++ b/src/core/smartparser.cpp @@ -39,6 +39,11 @@ SmartParser::SmartParser(const QString &device_path) : { } +SmartParser::~SmartParser() +{ + delete m_DiskInformation; +} + /** Initialize SmartParser data, retrieve the information from SMART JSON and initialize the disk information data */ bool SmartParser::init() { diff --git a/src/core/smartparser.h b/src/core/smartparser.h index a48750c..417bd90 100644 --- a/src/core/smartparser.h +++ b/src/core/smartparser.h @@ -33,6 +33,7 @@ class SmartParser { public: SmartParser(const QString &device_path); + ~SmartParser(); public: bool init();