trying not to leak memory

This commit is contained in:
FelixBrendel
2019-10-30 00:47:52 +01:00
parent 814cceaf3d
commit a790a38655
22 changed files with 204 additions and 78 deletions
+6
View File
@@ -39,3 +39,9 @@ proc append_to_keyword_argument_list(Keyword_Arguments* args,
args->keywords.append(keyword);
args->values.append(default_value);
}
Lisp_Object::~Lisp_Object() {
if (Memory::get_type(this) == Lisp_Object_Type::HashMap) {
this->value.hashMap.~Hash_Map();
}
}