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,
|
fprintf(stderr,
|
||||||
"Error in LoadYUVImage %d-component images not implemented\n",
|
"Error in LoadYUVImage %d-component images not implemented\n",
|
||||||
image->components );
|
image->components );
|
||||||
|
FreeImage(image);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user