Merge branch 'master' of git.omp.am:/home/omp/git/conky
authorCesare Tirabassi <norsetto@ubuntu.com>
Sun, 12 Jul 2009 19:18:28 +0000 (21:18 +0200)
committerCesare Tirabassi <norsetto@ubuntu.com>
Sun, 12 Jul 2009 19:18:28 +0000 (21:18 +0200)
doc/docs.xml
src/conky.c

index 6b56f35..e5548e5 100644 (file)
@@ -19,7 +19,7 @@
                <date>2009-07-09</date>
        </refentryinfo>
        <refmeta>
-               <refentrytitle>conky – Manual</refentrytitle>
+               <refentrytitle>conky</refentrytitle>
                <manvolnum>1</manvolnum>
        </refmeta>
        <refnamediv>
index 37e90ec..ce0b9e4 100644 (file)
@@ -7544,7 +7544,7 @@ void clean_up(void)
                info.cpu_usage = NULL;
        }
 #ifdef X11
-       if (output_methods & TO_X) {
+       if (x_initialised == YES) {
 #ifdef HAVE_XDBE
                if (use_xdbe) {
                        XdbeDeallocateBackBufferName(display, window.back_buffer);
@@ -7564,6 +7564,8 @@ void clean_up(void)
                }
 
                free_fonts();
+       }else{
+               free(fonts);    //in set_default_configurations a font is set but not loaded
        }
 
 #endif /* X11 */
@@ -8072,7 +8074,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
+                                       free(fonts);    //in set_default_configurations a font is set but not loaded
                                }
                        }
                }