Fix memleak when build with X11 but turned off in config
authorNikolas Garofil <garo@dunaldi.garofil.be>
Sun, 12 Jul 2009 12:52:58 +0000 (14:52 +0200)
committerNikolas Garofil <garo@dunaldi.garofil.be>
Sun, 12 Jul 2009 12:52:58 +0000 (14:52 +0200)
src/conky.c

index 25b0686..8f4cc65 100644 (file)
@@ -8045,6 +8045,7 @@ static void load_config_file(const char *f)
                                } else {
                                        output_methods &= ~TO_X;
                                        x_initialised = NEVER;
+                                       free(fonts);    //in set_default_configurations a font is set
                                }
                        }
                }