imageutils: Do not leak malformed bitmap (.bmp) file handle (thanks valgrind and extension typo to find it out!)

This commit is contained in:
Dmitry Tsarevich 2025-02-26 17:23:58 +03:00
parent 0759e2e8e1
commit 4eba76ccc9
No known key found for this signature in database
GPG key ID: 43F9C46DD0E9FDB0

View file

@ -713,6 +713,7 @@ unsigned char *ImgUtl_ReadBMPAsRGBA( const char *bmpPath, int &width, int &heigh
}
else
{
fclose( fp );
errcode = CE_ERROR_PARSING_SOURCE;
}
return NULL;