[Glitch] Clean up aResolutionsStr
This commit is contained in:
parent
36d169c57f
commit
c122485e53
|
@ -122,9 +122,18 @@ FullScreenResolutions::~FullScreenResolutions()
|
||||||
for (unsigned int i = 0; i < dwNumResolutions; i++)
|
for (unsigned int i = 0; i < dwNumResolutions; i++)
|
||||||
{
|
{
|
||||||
delete[] aResolutionsStr[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()
|
void FullScreenResolutions::init()
|
||||||
|
|
Loading…
Reference in New Issue