progs/util: Fix memory leak if LoadYUVImage fails.

This commit is contained in:
Vinson Lee 2009-11-16 18:22:26 -08:00
parent 60769b232c
commit 0e790ac353

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;
}