Error checking...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1195 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
c43ca67df6
commit
0378f937bb
1 changed files with 2 additions and 0 deletions
|
@ -76,6 +76,8 @@ void PRAddressableFlush(progfuncs_t *progfuncs, int totalammount)
|
||||||
#else
|
#else
|
||||||
free(addressablehunk);
|
free(addressablehunk);
|
||||||
addressablehunk = malloc(totalammount); //linux will allocate-on-use anyway, which is handy.
|
addressablehunk = malloc(totalammount); //linux will allocate-on-use anyway, which is handy.
|
||||||
|
if (addressablehunk == 0)
|
||||||
|
Sys_Error("Out of memory\n");
|
||||||
// memset(addressablehunk, 0xff, totalammount);
|
// memset(addressablehunk, 0xff, totalammount);
|
||||||
#endif
|
#endif
|
||||||
addressablesize = totalammount;
|
addressablesize = totalammount;
|
||||||
|
|
Loading…
Reference in a new issue