2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-12-26 02:36:08 +01:00

engine: imagelib: fix mismatched dealloc in a test

This commit is contained in:
Alibek Omarov 2024-09-30 03:58:43 +03:00
parent 37fb46f092
commit 0b1ad3b7f0

View File

@ -110,7 +110,7 @@ void Image_Reset( void )
image.size = 0;
}
static rgbdata_t *ImagePack( void )
static MALLOC_LIKE( FS_FreeImage, 1 ) rgbdata_t *ImagePack( void )
{
rgbdata_t *pack;
@ -547,7 +547,7 @@ static void Test_CheckImage( const char *name, rgbdata_t *rgb )
TASSERT( load->size == rgb->size )
TASSERT( memcmp(load->buffer, rgb->buffer, rgb->size ) == 0 )
Mem_Free( load );
FS_FreeImage( load );
}
void Test_RunImagelib( void )