trying not to leak memory
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user