mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
Fix minor memleak (fonts)
This commit is contained in:
parent
6793959916
commit
448476317f
@ -121,7 +121,11 @@ void free_fonts(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
if ((output_methods & TO_X) == 0 || fontloaded == 0) {
|
||||
if ((output_methods & TO_X) == 0) {
|
||||
return;
|
||||
}
|
||||
if(fontloaded == 0) {
|
||||
free(fonts);
|
||||
return;
|
||||
}
|
||||
for (i = 0; i <= font_count; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user