progs/util: Fix memory leak if LoadYUVImage fails.

(cherry picked from commit 0e790ac353)
This commit is contained in:
Vinson Lee
2009-11-16 18:22:26 -08:00
parent d6a993135f
commit 4ca8e1680e

View File

@@ -438,6 +438,7 @@ GLushort *LoadYUVImage( const char *imageFile, GLint *width, GLint *height )
fprintf(stderr,
"Error in LoadYUVImage %d-component images not implemented\n",
image->components );
FreeImage(image);
return NULL;
}