@@ -34,6 +34,7 @@ void *FCEU_gmalloc(uint32 size)
|
|||||||
FCEU_PrintError("Error allocating memory! Doing a hard exit.");
|
FCEU_PrintError("Error allocating memory! Doing a hard exit.");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
memset(ret, 0, size);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,7 +48,7 @@ void *FCEU_malloc(uint32 size)
|
|||||||
FCEU_PrintError("Error allocating memory!");
|
FCEU_PrintError("Error allocating memory!");
|
||||||
ret = 0;
|
ret = 0;
|
||||||
}
|
}
|
||||||
|
memset(ret, 0, size);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user