- fix for BGE warnings

- when C++ uses guardedalloc SYS_DeleteSystem was called after MEM_printmemlist(), making it look like there was a leak.
This commit is contained in:
2009-08-19 10:26:43 +00:00
parent e611c4756f
commit c3041ae7cd
19 changed files with 62 additions and 68 deletions

View File

@@ -219,15 +219,17 @@ bool ImageBase::checkSourceSizes (void)
// get size of current source
short * curSize = (*it)->getSize();
// if size is available and is not empty
if (curSize[0] != 0 && curSize[1] != 0)
if (curSize[0] != 0 && curSize[1] != 0) {
// if reference size is not set
if (refSize == NULL)
if (refSize == NULL) {
// set current size as reference
refSize = curSize;
// otherwise check with current size
else if (curSize[0] != refSize[0] || curSize[1] != refSize[1])
} else if (curSize[0] != refSize[0] || curSize[1] != refSize[1]) {
// if they don't match, report it
return false;
}
}
}
// all sizes match
return true;