GIFTranslator: check if NULL before accessing member

This commit is contained in:
John Scipione 2014-03-01 16:00:06 -05:00
parent 4ac43a1be4
commit c14b552e41

View File

@ -570,7 +570,8 @@ GIFLoad::MemblockAllocate(int size)
unsigned char* value = block->data;
block->offset = size;
block->next = NULL;
last->next = block;
if (last != NULL)
last->next = block;
return value;
}