Minor fixes.

This commit is contained in:
Ignacio 2016-09-19 11:20:25 -07:00
parent a11a6739c2
commit 1a75484520

View File

@ -1704,7 +1704,7 @@ static Image * loadSTB(Stream & s)
int w, h, n;
uint8 * data = stbi_load_from_memory(buffer, size, &w, &h, &n, 4);
delete buffer;
delete [] buffer;
if (data != NULL) {
Image * img = new Image;
@ -1744,7 +1744,7 @@ static FloatImage * loadFloatSTB(Stream & s)
int w, h, n;
float * data = stbi_loadf_from_memory(buffer, size, &w, &h, &n, 0);
delete buffer;
delete [] buffer;
// Copy to image.
if (data != NULL) {