]> Dogcows Code - chaz/tint2/blobdiff - src/panel.c
desktop name second step
[chaz/tint2] / src / panel.c
index 9b52aae3768f3b4e8d848a6b3adc09b0fe3ae271..85efec96640ca4c4230e5b08850ec40013530000 100644 (file)
@@ -105,6 +105,8 @@ void cleanup_panel()
        if (!panel1) return;
 
        cleanup_taskbar();
+       // taskbarname_font_desc freed here because cleanup_taskbarname() called on _NET_NUMBER_OF_DESKTOPS
+       if (taskbarname_font_desc)      pango_font_description_free(taskbarname_font_desc);
 
        int i;
        Panel *p;
@@ -535,8 +537,11 @@ void set_panel_background(Panel *p)
                for (k=0; k<TASKBAR_STATE_COUNT; ++k) {
                        if (tskbar->state_pix[k]) XFreePixmap(server.dsp, tskbar->state_pix[k]);
                        tskbar->state_pix[k] = 0;
+                       if (tskbar->bar_name.state_pix[k]) XFreePixmap(server.dsp, tskbar->bar_name.state_pix[k]);
+                       tskbar->bar_name.state_pix[k] = 0;
                }
                tskbar->area.pix = 0;
+               tskbar->bar_name.area.pix = 0;
                l0 = tskbar->area.list;
                if (taskbarname_enabled) l0 = l0->next;
                for (; l0 ; l0 = l0->next) {
This page took 0.019505 seconds and 4 git commands to generate.