Clean up buffer after loading logo from file
This commit is contained in:
1 parent
936c478a9a
commit
e4516dc548
1 file changed
+3
@@ -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