clean up null object

This commit is contained in:
IlyaShurupov 2024-03-25 11:36:29 +03:00
parent 55daf0f303
commit acaa086943
6 changed files with 30 additions and 50 deletions

View file

@ -296,7 +296,7 @@ Object* objects_api::load(ArchiverIn& ndf, alni file_adress) {
// check for null object
if (out->type == &NullObject::TypeData) {
ObjectMemDeallocate(out);
out = NdoNull_globalInstance;
out = getNull();
}
// save heap adress in "loaded_file"