mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-14 11:33:14 +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;
|
int i;
|
||||||
|
|
||||||
if ((output_methods & TO_X) == 0 || fontloaded == 0) {
|
if ((output_methods & TO_X) == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(fontloaded == 0) {
|
||||||
|
free(fonts);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (i = 0; i <= font_count; i++) {
|
for (i = 0; i <= font_count; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user