]> Dogcows Code - chaz/tint2/commitdiff
fixed segfault
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Sat, 13 Nov 2010 23:48:36 +0000 (23:48 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Sat, 13 Nov 2010 23:48:36 +0000 (23:48 +0000)
src/taskbar/taskbarname.c

index f9a8648e5522b04b5a29b040a06e814a41b2c507..ff75893ce8c6f3d7e5e0d91d77b74ba36b753548 100644 (file)
@@ -63,11 +63,11 @@ void cleanup_taskbarname()
        Panel *panel;
        Taskbar *tskbar;
 
+       if (taskbarname_font_desc)      pango_font_description_free(taskbarname_font_desc);
        for (i=0 ; i < nb_panel ; i++) {
                panel = &panel1[i];
                for (j=0 ; j < panel->nb_desktop ; j++) {
                        tskbar = &panel->taskbar[j];
-                       if (taskbarname_font_desc)      pango_font_description_free(taskbarname_font_desc);
                        if (tskbar->bar_name.name)      g_free(tskbar->bar_name.name);
                        free_area (&tskbar->bar_name.area);
                        for (k=0; k<TASKBAR_STATE_COUNT; ++k) {
This page took 0.026523 seconds and 4 git commands to generate.