diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-12 17:23:56 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-12 17:23:56 +0200 |
commit | c101364d4aafe50807cf7c8a831fb66eade3fb7f (patch) | |
tree | 9f5fcc994997ae3d5068f6c0f5d9a8cd4c8d749a /backend/Object.cpp | |
parent | 957053e7bf25ae9cfda0243d3cbcad1e9abac60a (diff) |
wip
Diffstat (limited to 'backend/Object.cpp')
-rw-r--r-- | backend/Object.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/backend/Object.cpp b/backend/Object.cpp new file mode 100644 index 0000000..300e6ac --- /dev/null +++ b/backend/Object.cpp @@ -0,0 +1,15 @@ +#include <stdlib.h> + +#include "Object.h" + +Object::~Object() { + if (this->name != nullptr) { + free(const_cast<char *>(this->name)); + this->name = nullptr; + } + if (this->description != nullptr) { + free(const_cast<char *>(this->description)); + this->description = nullptr; + } +} + |