blob: 300e6ac4fb4f7b5e58b1409df2f65d659f3afb41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
}
}
|