1
0
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:
Nikolas Garofil 2009-07-13 15:04:57 +02:00
parent 6793959916
commit 448476317f

View File

@ -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++) {