Commit e3ee07e4 authored by Steven Fuller's avatar Steven Fuller

some memory that was claimed to be lost now freed on exit

parent 6ef23a53
...@@ -815,6 +815,17 @@ static void PML_ClosePageFile() ...@@ -815,6 +815,17 @@ static void PML_ClosePageFile()
CloseRead(PageFile); CloseRead(PageFile);
if (PMPages) { if (PMPages) {
int i;
for (i = 0; i < ChunksInFile; i++) {
PageListStruct *page;
page = &PMPages[i];
if (page->addr != NULL) {
MM_FreePtr((memptr)&page->addr);
}
}
MM_SetLock((memptr)&PMPages,false); MM_SetLock((memptr)&PMPages,false);
MM_FreePtr((memptr)&PMPages); MM_FreePtr((memptr)&PMPages);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment