diff --git a/streams/region/region_file.cpp b/streams/region/region_file.cpp index 655645f8..40e75721 100644 --- a/streams/region/region_file.cpp +++ b/streams/region/region_file.cpp @@ -274,7 +274,7 @@ Error RegionFile::close() { err = ERR_FILE_CANT_WRITE; } } - _file_access = nullptr; + _file_access.unref(); } _sectors.clear(); return err;