- Fixed?: WallSpriteColumn apparently needs to set dc_texturefrac. At least
Valgrind seems to say so. - Fixed: The FWadCollection destructor needs to use free to free the LumpInfo and Wads arrays. - Fixed: The ColorMapKiller needs to use the delete[] form of delete. - Fixed: FConfigFile::ClearCurrentSection() should be calling the delete[] form of delete to free the entry. - Fixed: FPatchTexture::MakeTexture() does not need to blindly recreate the Spans if they already exist. - Fixed: The FMultiPatchTexture destructor did not call its Unload() method. - Restored the original padding calculation to FMultiPatchTexture::MakeTexture(). I believe the Valgrind errors were caused by accessing off the end of the screen buffer, not from accessing off the end of a texture. SVN r98 (trunk)
This commit is contained in:
parent
d878c2e7d6
commit
def53bdd5d
6 changed files with 26 additions and 10 deletions
|
|
@ -195,7 +195,7 @@ FWadCollection::~FWadCollection ()
|
|||
delete[] LumpInfo[i].fullname;
|
||||
}
|
||||
}
|
||||
delete[] LumpInfo;
|
||||
free (LumpInfo);
|
||||
LumpInfo = NULL;
|
||||
}
|
||||
if (Wads != NULL)
|
||||
|
|
@ -204,7 +204,7 @@ FWadCollection::~FWadCollection ()
|
|||
{
|
||||
delete Wads[i];
|
||||
}
|
||||
delete[] Wads;
|
||||
free (Wads);
|
||||
Wads = NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue