progs/util: Fix memory if LoadRGBMipmaps2 fails.
This commit is contained in:
parent
081bf9563f
commit
28b8e4bcd7
|
@ -305,6 +305,7 @@ GLboolean LoadRGBMipmaps2( const char *imageFile, GLenum target,
|
|||
fprintf(stderr,
|
||||
"Error in LoadRGBMipmaps %d-component images not implemented\n",
|
||||
image->components );
|
||||
FreeImage(image);
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue