#include #include "Object.h" Object::~Object() { if (this->name != nullptr) { free(const_cast(this->name)); this->name = nullptr; } if (this->description != nullptr) { free(const_cast(this->description)); this->description = nullptr; } }