progs/util: Fix memory leak if LoadYUVImage fails.
(cherry picked from commit 0e790ac353
)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user