GRIM: Don't bother checking if the value returned from new is nulll
It can never be null and will throw an exception if it can't allocate the memory
This commit is contained in:
parent
e65d98801e
commit
dbfd0efab6
3 changed files with 0 additions and 10 deletions
|
@ -1074,8 +1074,6 @@ void GfxOpenGLS::createFont(Font *font) {
|
|||
|
||||
uint arraySize = size * size * bpp * charsWide * charsHigh;
|
||||
byte *temp = new byte[arraySize];
|
||||
if (!temp)
|
||||
error("Could not allocate %d bytes", arraySize);
|
||||
|
||||
memset(temp, 0, arraySize);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue