Report CGDMalloc failures
This commit is contained in:
parent
58e007be85
commit
3e79691ad1
|
@ -12,7 +12,10 @@ void * CGDMalloc(int iSize)
|
|||
iAllocSum += iSize;
|
||||
printf("malloc %i (%i)\n",iSize,iAllocSum);
|
||||
#endif
|
||||
return malloc(iSize);
|
||||
void *p = malloc(iSize);
|
||||
if (!p)
|
||||
I_Error ("CGDMalloc failure");
|
||||
return p;
|
||||
}
|
||||
|
||||
void * CGDCalloc(int iSize)
|
||||
|
|
Loading…
Reference in New Issue