mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Clean up buffer after loading logo from file
This commit is contained in:
@@ -294,7 +294,10 @@ static void loadLogoFromFile(FFlogo* logo, bool doColor, FFstrbuf* configColor,
|
||||
: logoWidth;
|
||||
}
|
||||
|
||||
// Clean up
|
||||
fclose(fp);
|
||||
if(buff != NULL)
|
||||
free(buff);
|
||||
|
||||
logo->width = logoWidth;
|
||||
logo->height = logoHeight;
|
||||
|
||||
Reference in New Issue
Block a user