From 739bae01a6c3a999984347afb33d5b336556a4b9 Mon Sep 17 00:00:00 2001 From: Thierry Lorthiois Date: Sat, 13 Nov 2010 23:48:36 +0000 Subject: [PATCH] fixed segfault --- src/taskbar/taskbarname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/taskbar/taskbarname.c b/src/taskbar/taskbarname.c index f9a8648..ff75893 100644 --- a/src/taskbar/taskbarname.c +++ b/src/taskbar/taskbarname.c @@ -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