[Glitch] Clean up aResolutionsStr

This commit is contained in:
zilmar 2016-11-14 18:12:31 +11:00
parent 36d169c57f
commit c122485e53
1 changed files with 11 additions and 2 deletions

View File

@ -122,9 +122,18 @@ FullScreenResolutions::~FullScreenResolutions()
for (unsigned int i = 0; i < dwNumResolutions; i++)
{
delete[] aResolutionsStr[i];
aResolutionsStr[i] = NULL;
}
if (aResolutionsStr)
{
delete[] aResolutionsStr;
aResolutionsStr = NULL;
}
if (aResolutions)
{
delete[] aResolutions;
aResolutions = NULL;
}
delete[] aResolutionsStr;
delete[] aResolutions;
}
void FullScreenResolutions::init()