- [FIX] Small memory leak fixed

This commit is contained in:
2024-02-12 13:15:57 +01:00
parent fe444fc0ec
commit 19df09dddc
4 changed files with 10 additions and 7 deletions

3
gif.c
View File

@@ -434,6 +434,9 @@ static unsigned char* process_gif_stream(unsigned char *buffer, unsigned short*
// sizeof( screen_descriptor_t ) = 8!
READ(&screen_descriptor, 7);
if (w) *w = screen_descriptor.width;
if (h) *h = screen_descriptor.height;
color_resolution_bits = ( ( screen_descriptor.fields & 0x70 ) >> 4 ) + 1;
if ( screen_descriptor.fields & 0x80 )